1
0
Fork 0
forked from wry/wry

autocommit 2022-03-29 14:11:25 CEST

This commit is contained in:
Julian Orth 2022-03-29 14:11:25 +02:00
parent 9630354245
commit 6ebf731aea
74 changed files with 650 additions and 317 deletions

40
src/cli.rs Normal file
View file

@ -0,0 +1,40 @@
use clap::{ArgEnum, Args, Parser, Subcommand};
#[derive(Parser, Debug)]
pub struct Cli {
#[clap(flatten)]
pub global: GlobalArgs,
#[clap(subcommand)]
pub command: Cmd,
}
#[derive(Args, Debug)]
pub struct GlobalArgs {
#[clap(long)]
hurr: String,
}
#[derive(Subcommand, Debug)]
pub enum Cmd {
/// Run the compositor
Run,
Test(Test),
}
#[derive(Args, Debug)]
pub struct Test {
/// a
///
/// b
///
/// c
#[clap(long, use_value_delimiter = true, arg_enum)]
shell: Vec<Hurr>,
}
#[derive(ArgEnum, Debug, Copy, Clone)]
pub enum Hurr {
Bash,
Fish,
Zsh,
}