1use clier::run::ExitCode;
2use clier::{CliMeta, Clier, CmdCollection, CmdMeta, Commands};
3fn main() {
4 let clier_builder = Clier::parse().meta(CliMeta {
5 name: "example-clier".into(),
6 usage: Some("[command]".into()),
7 description: "testing".into(),
8 version: Some("0.0.0".into()),
9 });
10
11 let app = clier_builder.runnable(vec![Commands::Collection(CmdCollection {
12 meta: CmdMeta::new("testing", "testing"),
13 children: Box::from([Commands::Command {
14 meta: CmdMeta::new("testchild", "testing"),
15 handler: |_| {
16 println!("hello");
17 ExitCode(0)
18 },
19 }]),
20 })]);
21
22 app.run();
23}