git_stk/commands/
setup.rs1use anyhow::Result;
2use clap::ArgAction;
3
4use crate::commands::Run;
5
6#[derive(Debug, clap::Args)]
8pub struct Setup {
9 #[arg(long, short = 'y', action = ArgAction::SetTrue)]
11 yes: bool,
12 #[arg(long, action = ArgAction::SetTrue, conflicts_with = "yes")]
14 refresh: bool,
15 #[arg(long, action = ArgAction::SetTrue, conflicts_with = "refresh")]
18 wrapper: bool,
19}
20
21impl Run for Setup {
22 fn run(self) -> Result<()> {
23 crate::setup::setup(self.yes, self.refresh, self.wrapper)
24 }
25}