web3-proxy/web3_proxy/src/sub_commands/example.rs

17 lines
354 B
Rust
Raw Normal View History

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 {
#[argh(switch)]
/// whether to fooey
fooey: bool,
}
2023-03-03 07:58:07 +03:00
impl ExampleSubcommand {
pub async fn main(self) -> anyhow::Result<()> {
todo!()
}
}