vdev/commands/
status.rs

1use anyhow::Result;
2use clap::Args;
3
4use crate::git;
5
6/// Show information about the current environment
7#[derive(Args, Debug)]
8#[command()]
9pub struct Cli {}
10
11impl Cli {
12    pub fn exec(self) -> Result<()> {
13        println!("Branch: {}", git::current_branch()?);
14        println!("Changed files: {}", git::changed_files()?.len());
15
16        Ok(())
17    }
18}