- commands/block/: block.sh, show.sh, helpers.sh - commands/unblock/: unblock.sh, show.sh, helpers.sh - flag::define array type: --ip[], --subnet[], --port[], --service[] - help.sh: use pre-cached _FLAG_C_* arrays instead of flag::_parse_constraints - remove flag::_parse_constraints/flag::_constraint_get calls from help.sh - adopt local var; var=value pattern for safe assignment
9 lines
No EOL
233 B
Bash
9 lines
No EOL
233 B
Bash
#!/usr/bin/env bash
|
|
# commands/block/block.sh — router only
|
|
|
|
function cmd::block::on_load() {
|
|
command::helpers "helpers.sh"
|
|
command::define show "Block a peer or service" [*]
|
|
}
|
|
|
|
hook::on "command:help:block" command::help::auto |