diff --git a/src/bin/repo.rs b/src/bin/repo.rs index c5e173b1..01fd77ac 100644 --- a/src/bin/repo.rs +++ b/src/bin/repo.rs @@ -91,6 +91,9 @@ impl CliCommand { pub fn is_informational(&self) -> bool { *self == CliCommand::Tree || *self == CliCommand::Find } + pub fn is_building(&self) -> bool { + *self == CliCommand::Fetch || *self == CliCommand::Cook + } } impl FromStr for CliCommand { @@ -340,7 +343,7 @@ fn parse_args(args: Vec) -> anyhow::Result<(CliConfig, CliCommand, Vec