From 0a10d492eb2fda718e56c5a712d855ac97af9f53 Mon Sep 17 00:00:00 2001 From: Dan Motzenbecker Date: Sun, 4 Oct 2015 15:19:04 -0400 Subject: [PATCH] moved xcode task --- main.coffee | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/main.coffee b/main.coffee index 018e829..1b489f0 100644 --- a/main.coffee +++ b/main.coffee @@ -319,15 +319,12 @@ cli.command 'init ' init name + cli.command 'launch' .description 'Run project in simulator and start REPL' .action -> launch readConfig() -cli.command 'xcode' - .description 'Open Xcode project' - .action -> - openXcode readConfig().name cli.command 'listdevices' .description 'List available simulator devices by index' @@ -336,6 +333,7 @@ cli.command 'listdevices' .map (line, i) -> "#{i}\t#{line.replace /\[.+\]/, ''}" .join '\n') + cli.command 'setdevice ' .description 'Choose simulator device by index' .action (index) -> @@ -346,6 +344,13 @@ cli.command 'setdevice ' config.device = pluckUuid device writeConfig config + +cli.command 'xcode' + .description 'Open Xcode project' + .action -> + openXcode readConfig().name + + cli.on '*', (command) -> logErr "Unknown command #{command[0]}. See natal --help for valid commands"