wgctl/commands/list/list.sh
Nuno Duque Nunes de22dbeec7 feat: list migration to command framework
- 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
2026-05-30 04:14:21 +00:00

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