- flag::define: variadic constraint args (key:value) instead of bracket string - flag::_parse_constraints_from_args: replaces flag::_parse_and_cache - flag::set_constraint: Option B syntax for post-definition constraints - choices separator: comma (choices:split,full) — no quoting needed - guard against empty _CURRENT_COMMAND in exclusive groups lookup - migrate all commands to new constraint syntax - add helpful error for unknown constraint args
10 lines
No EOL
294 B
Bash
10 lines
No EOL
294 B
Bash
#!/usr/bin/env bash
|
|
# commands/config/config.sh — router only
|
|
|
|
function cmd::config::on_load() {
|
|
command::helpers "helpers.sh"
|
|
command::define show "Show client config" [*]
|
|
command::define migrate "Migrate config to JSON" [m]
|
|
}
|
|
|
|
hook::on "command:help:config" command::help::auto |