Add cmd wrapper script

This commit is contained in:
Michael Wolf
2025-10-25 14:18:08 -06:00
parent de7dbf45cd
commit 6a4a2f7eef
7 changed files with 99 additions and 0 deletions

19
cmd Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
# This file belongs to the framework. You are not expected to modify it.
# FIXME: Obviously this file isn't nearly robust enough. Make it so.
set -eu
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
subcmd="$1"
# echo "$subcmd"
#exit 3
shift
exec "$DIR"/cmd.d/"$subcmd" "$@"