Update src/killsw

This commit is contained in:
2026-03-24 19:28:24 +01:00
parent 2339c443ac
commit 2a6e8cf33c

View File

@@ -16,6 +16,13 @@ case "$cmd" in
status)
systemctl status killswitch.target
;;
add)
if [[ "$3" == "to" && "$4" == "group" && -n "$5" ]]; then
echo "Called add $2 to group $5"
else
echo "Usage: killsw add [service] to group [name]"
fi
;;
help|-h|--help)
cat << EOF
KillSwitch CLI Tool - v$VERSION
@@ -24,11 +31,12 @@ USAGE:
killsw <command>
COMMANDS:
stop Stop all services linked to killswitch.target
start Start all services linked to killswitch.target
status Show the current status of the killswitch target
-h, --help Show this help message
-v, --version Show version information
stop Stop all services linked to killswitch.target
start Start all services linked to killswitch.target
status Show the current status of the killswitch target
add [service] to group [name] adds services to different groups. (not doing anything at the moment)
-h, --help Show this help message
-v, --version Show version information
ABOUT KILLSWITCH:
What it does: