commit 20ace4c

ch  ·  2026-09-14 10:27:18 +1200 NZST
parent eac5137
Add some template stuff for when I make the function
1 files changed,  +17, -0
+17, -0
 1@@ -0,0 +1,17 @@
 2+import "os" for Process
 3+var file = Process.arguments
 4+var binvar = "/usr/bin/local/"
 5+var filename = "Example"
 6+if (file.count > 0) {
 7+  var command = file[0]
 8+  
 9+  if (command == "install") {
10+  	System.print("installing to %(binvar)%(filename)")
11+  } else if (command == "-v" ||  command == "--version") {
12+      System.print("wake version 1")
13+  } else if (command == "help") {
14+      System.print("Commands: wake (builds) wake install (installs) -v and --version (shows version)")
15+  } else {
16+     System.print("I dunno %(command)")
17+  }
18+}