From 567b9e56f30cfe53c80383df13b17ca59ff9b9b6 Mon Sep 17 00:00:00 2001 From: Chad Nelson Date: Thu, 27 Feb 2025 16:21:47 -0700 Subject: [PATCH] updated autocompile to include for now --- scripts/msg | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 scripts/msg diff --git a/scripts/msg b/scripts/msg new file mode 100755 index 0000000..77b82d5 --- /dev/null +++ b/scripts/msg @@ -0,0 +1,24 @@ +#!/opt/homebrew/bin/guile \ +-e main -s +!# + +(use-modules (msg machine) + (msg shell) + (ice-9 match)) + +(define* (main #:optional (args (command-line))) + (define clean-args (cdr args)) + + (match clean-args + (("machine" rest ...) + (machine rest)) + (("shell" rest ...) + (shell)) + (("-h") + (help)) + (_ + (display "Please enter a valid command or -h for help.\n")))) + +(define* (help) + (display "\nHere are the available commands:\n\n") + (display "machine: interact with the vm environment for MSG.\n"))