- commands/group/: 17 files, all subcommands migrated - helpers.sh: real implementations, no invented functions - set_main: uses peers::set_main_group - rename: json::set + mv - peer add/remove: group::add_peer, group::remove_peer - block/unblock: block::add_group, block::remove_group - purge-stale: inline stale detection via group::peers - audit: no invented helper functions - logs: command::load_subcmd logs show for direct function access - logs/helpers.sh: extracted shared functions (follow, show_fw, show_wg, show_merged) - group rule unassign: stub (not yet implemented) - notes: group watch pending, monitor module refactor pending
12 lines
No EOL
437 B
Bash
12 lines
No EOL
437 B
Bash
#!/usr/bin/env bash
|
|
# commands/logs/logs.sh — router only
|
|
|
|
function cmd::logs::on_load() {
|
|
command::helpers "helpers.sh"
|
|
command::define show "Show WireGuard and firewall logs" [*]
|
|
command::define clean "Remove keepalive handshakes" [c]
|
|
command::define remove "Remove log entries" [rm, del]
|
|
command::define rotate "Remove entries older than N days"
|
|
}
|
|
|
|
hook::on "command:help:logs" command::help::auto |