blue_cli/commands/
check.rs

1use clap::Args;
2
3use crate::config::Config;
4#[derive(Args, Debug)]
5pub struct Check {
6    /// The environment to check
7    #[arg(short = 'e', long = "env")]
8    env: Option<String>,
9}
10
11pub fn run(command: &Check, config: &Config) {
12    println!("Checking environment: {:?}", command.env);
13    println!(
14        "Workspace Name: {:?}",
15        config.workspace.as_ref().unwrap().name.as_ref().unwrap()
16    );
17}