diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2021-09-13 22:06:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-13 22:06:45 +0200 |
commit | cba1e7b5a3c239235c0e855dc430c8aa89272401 (patch) | |
tree | c9bbc711db749ddbf96b722a2cb48ab89e701e0d /cli/main.rs | |
parent | 0dbeb774ba9ea618ff1e92b63ab31e5caf3003dd (diff) |
feat: add option flags to 'deno fmt' (#12060)
Diffstat (limited to 'cli/main.rs')
-rw-r--r-- | cli/main.rs | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/cli/main.rs b/cli/main.rs index 55de5a61e..672668c2a 100644 --- a/cli/main.rs +++ b/cli/main.rs @@ -815,20 +815,12 @@ async fn format_command( if fmt_flags.files.len() == 1 && fmt_flags.files[0].to_string_lossy() == "-" { return tools::fmt::format_stdin( - fmt_flags.check, - fmt_flags.ext, + fmt_flags, maybe_fmt_config.map(|c| c.options).unwrap_or_default(), ); } - tools::fmt::format( - fmt_flags.files, - fmt_flags.ignore, - fmt_flags.check, - flags.watch, - maybe_fmt_config, - ) - .await?; + tools::fmt::format(fmt_flags, flags.watch, maybe_fmt_config).await?; Ok(()) } |