wgctl/commands/logs/logs.sh
Nuno Duque Nunes ce437968b4 feat: group migration complete
- 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
2026-05-31 02:44:19 +00:00

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