diff --git a/Cargo.lock b/Cargo.lock index 1fc5493..6e7d173 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -418,7 +418,7 @@ dependencies = [ [[package]] name = "depot-js" -version = "0.2.15" +version = "0.2.16" dependencies = [ "ansi-diff", "ansi-to-tui", diff --git a/crates/depot/Cargo.toml b/crates/depot/Cargo.toml index 77fb4c5..612432e 100644 --- a/crates/depot/Cargo.toml +++ b/crates/depot/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "depot-js" -version = "0.2.15" +version = "0.2.16" description = "A Javascript devtool orchestrator" edition = "2021" authors = ["Will Crichton "] diff --git a/crates/depot/src/commands/fmt.rs b/crates/depot/src/commands/fmt.rs index 854073a..347bbd6 100644 --- a/crates/depot/src/commands/fmt.rs +++ b/crates/depot/src/commands/fmt.rs @@ -2,16 +2,16 @@ use anyhow::{Context, Result}; use crate::workspace::{package::Package, Command, CoreCommand, PackageCommand}; -/// Format source files with prettier +/// Format source files with biome #[derive(clap::Parser, Debug)] pub struct FmtArgs { /// If true, don't write to files and instead fail if they aren't formatted #[arg(short, long, action)] pub check: bool, - /// Additional arguments to pass to prettier + /// Additional arguments to pass to biome #[arg(last = true)] - pub prettier_args: Option, + pub biome_args: Option, } #[derive(Debug)] @@ -39,8 +39,8 @@ impl CoreCommand for FmtCommand { #[async_trait::async_trait] impl PackageCommand for FmtCommand { async fn run_pkg(&self, pkg: &Package) -> Result<()> { - let extra = match &self.args.prettier_args { - Some(args) => shlex::split(args).context("Failed to parse prettier args")?, + let extra = match &self.args.biome_args { + Some(args) => shlex::split(args).context("Failed to parse biome args")?, None => Vec::new(), }; diff --git a/crates/depot/src/lib.rs b/crates/depot/src/lib.rs index 4844126..e018dd5 100644 --- a/crates/depot/src/lib.rs +++ b/crates/depot/src/lib.rs @@ -43,7 +43,7 @@ pub struct CommonArgs { } #[derive(clap::Parser)] -#[command(author, version, about, long_about = None)] +#[command(name = "depot", author, version, about, long_about = None)] struct Args { #[command(subcommand)] command: Command,