|
|
|
@ -1,5 +1,4 @@
@@ -1,5 +1,4 @@
|
|
|
|
|
use clap::{AppSettings, Args, Parser, ValueEnum}; |
|
|
|
|
use std::fmt::{Display, Formatter}; |
|
|
|
|
|
|
|
|
|
#[derive(Parser)] |
|
|
|
|
#[clap(name = "cargo")] |
|
|
|
@ -35,14 +34,3 @@ impl CargoCommand {
@@ -35,14 +34,3 @@ impl CargoCommand {
|
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
impl Display for CargoCommand { |
|
|
|
|
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { |
|
|
|
|
match self { |
|
|
|
|
CargoCommand::Build | CargoCommand::Run => write!(f, "build"), |
|
|
|
|
CargoCommand::Test => write!(f, "test"), |
|
|
|
|
CargoCommand::Check => write!(f, "check"), |
|
|
|
|
CargoCommand::Clippy => write!(f, "clippy"), |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|