#!/usr/bin/env bash # commands/group/group.sh — router only function cmd::group::on_load() { command::helpers "helpers.sh" command::define list "List all groups" [*, ls] command::define show "Show group details" [info] command::define add "Create a new group" [new, create] command::define remove "Remove a group" [rm, del, delete] command::define rename "Rename a group" command::define peer "Manage group peers" command::define rm-peers "Remove all peers from a group" [rm-peers] command::define set-main "Set main group for a peer" [set-main] command::define block "Block all peers in a group" command::define unblock "Unblock all peers in a group" command::define rule "Manage group rules" command::define purge-stale "Remove stale peers from groups" [purge] command::define audit "Audit group membership" command::define logs "Show logs for group peers" command::define watch "Watch logs for group peers" } hook::on "command:help:group" command::help::auto