2025-01-04 07:35:04 +09:00
|
|
|
use super::*;
|
|
|
|
|
|
|
|
|
|
pub fn cmds() -> impl Iterator<Item = Command> {
|
2025-01-24 04:08:59 +09:00
|
|
|
let help = ("help", ["h"]);
|
2025-01-05 00:59:59 +09:00
|
|
|
[
|
2025-01-24 04:08:59 +09:00
|
|
|
command!(help => "help")
|
2025-01-22 00:50:17 +09:00
|
|
|
.flag(("foo", OpaqueString)) // todo: just for testing
|
2025-01-21 23:57:10 +09:00
|
|
|
.help("Shows the help command"),
|
2025-01-24 04:08:59 +09:00
|
|
|
command!(help, "commands" => "help_commands").help("help commands"),
|
|
|
|
|
command!(help, "proxy" => "help_proxy").help("help proxy"),
|
2025-01-05 00:59:59 +09:00
|
|
|
]
|
2025-01-04 07:35:04 +09:00
|
|
|
.into_iter()
|
|
|
|
|
}
|