- commands/list/list.sh: router + command::define show [*] - commands/list/show.sh: flag::define + flag::parse, all helpers - flag::exclusive: register under top-level command name (strip ::subcmd) - flag::parse: validate exclusive groups, error on conflicting user flags - --help: intercept in command::run before routing - help::auto: don't show default subcommand in usage line
8 lines
No EOL
196 B
Bash
8 lines
No EOL
196 B
Bash
#!/usr/bin/env bash
|
|
# commands/list/list.sh — router only
|
|
|
|
function cmd::list::on_load() {
|
|
command::define show "List WireGuard clients" [*]
|
|
}
|
|
|
|
hook::on "command:help:list" command::help::auto |