modcli/custom/
mod.rs

1/*
2use crate::command::Command;
3
4/// An example custom hardcoded command.
5pub struct CustomCommand;
6
7impl Command for CustomCommand {
8    fn name(&self) -> &str {
9        "custom"
10    }
11
12    fn aliases(&self) -> &[&str] {
13        &["c"]
14    }
15
16    fn help(&self) -> Option<&str> {
17        Some("An example hardcoded custom command")
18    }
19
20    fn execute(&self, args: &[String]) {
21        println!("You executed a custom command!");
22        if !args.is_empty() {
23            println!("With args: {:?}", args);
24        }
25    }
26}
27*/