master main.wren
ch  ·  2026-09-14
 1import "os" for Process
 2var file = Process.arguments
 3var binvar = "/usr/bin/local/"
 4var filename = "Example"
 5if (file.count > 0) {
 6  var command = file[0]
 7  
 8  if (command == "install") {
 9  	System.print("installing to %(binvar)%(filename)")
10  } else if (command == "-v" ||  command == "--version") {
11      System.print("wake version 1")
12  } else if (command == "help") {
13      System.print("Commands: wake (builds) wake install (installs) -v and --version (shows version)")
14  } else {
15     System.print("I dunno %(command)")
16  }
17}