2022-08-06 03:07:12 +03:00
|
|
|
use argh::FromArgs;
|
|
|
|
|
|
|
|
#[derive(FromArgs, PartialEq, Debug)]
|
2023-03-03 07:58:07 +03:00
|
|
|
/// An example subcommand. Copy paste this into a new file.
|
|
|
|
#[argh(subcommand, name = "example")]
|
|
|
|
pub struct ExampleSubcommand {
|
2022-08-06 03:07:12 +03:00
|
|
|
#[argh(switch)]
|
|
|
|
/// whether to fooey
|
|
|
|
fooey: bool,
|
|
|
|
}
|
|
|
|
|
2023-03-03 07:58:07 +03:00
|
|
|
impl ExampleSubcommand {
|
2022-08-06 03:07:12 +03:00
|
|
|
pub async fn main(self) -> anyhow::Result<()> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|