Browse Source

Add a basic command runner

nsITobin 2 months ago
parent
commit
8876368186
1 changed files with 30 additions and 0 deletions
  1. 30 0
      mach

+ 30 - 0
mach

@@ -0,0 +1,30 @@
+#/bin/bash
+
+# == | Setup | ========================================================================================================
+
+set -x #echo on
+
+# ---------------------------------------------------------------------------------------------------------------------
+
+if [[ -z "$1" ]]; then
+  printf "${0} Usage: run"
+  exit 1
+fi
+
+# =====================================================================================================================
+
+# == | Functions | ====================================================================================================
+
+shmach_cmd_run() {
+  printf "${0} Run complete."
+  exit 0
+}
+
+# =====================================================================================================================
+
+# == | Main | =========================================================================================================
+
+"shmach_cmd_${@:1}"
+exit 0
+
+# =====================================================================================================================