NAT archiveController handle running commands by key
This commit is contained in:
@@ -10,9 +10,7 @@
|
||||
(Sys.print ">> ")
|
||||
(let [command
|
||||
(.trim (.toString (.readLine (Sys.stdin))))]
|
||||
(if (controller.commands.exists command)
|
||||
(controller.runCommand (dictGet controller.commands command))
|
||||
(Sys.println "$command is not a valid command")))))
|
||||
(controller.tryRunCommand command))))
|
||||
|
||||
(defNew [])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user