Add a command to add a new user

This commit is contained in:
2026-01-11 14:38:19 -06:00
parent 1c1eeddcbe
commit afcb447b2b
3 changed files with 101 additions and 0 deletions

25
mgmt Executable file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
# Management command runner - parallel to ./cmd for operational tasks
# Usage: ./mgmt <command> [args...]
set -eu
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [ $# -lt 1 ]; then
echo "Usage: ./mgmt <command> [args...]"
echo ""
echo "Available commands:"
for cmd in "$DIR"/framework/mgmt.d/*; do
if [ -x "$cmd" ]; then
basename "$cmd"
fi
done
exit 1
fi
subcmd="$1"
shift
exec "$DIR"/framework/mgmt.d/"$subcmd" "$@"