mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-15 23:24:48 +00:00
moved xcode task
This commit is contained in:
parent
570f410b6e
commit
0a10d492eb
13
main.coffee
13
main.coffee
@ -319,15 +319,12 @@ cli.command 'init <name>'
|
|||||||
|
|
||||||
init name
|
init name
|
||||||
|
|
||||||
|
|
||||||
cli.command 'launch'
|
cli.command 'launch'
|
||||||
.description 'Run project in simulator and start REPL'
|
.description 'Run project in simulator and start REPL'
|
||||||
.action ->
|
.action ->
|
||||||
launch readConfig()
|
launch readConfig()
|
||||||
|
|
||||||
cli.command 'xcode'
|
|
||||||
.description 'Open Xcode project'
|
|
||||||
.action ->
|
|
||||||
openXcode readConfig().name
|
|
||||||
|
|
||||||
cli.command 'listdevices'
|
cli.command 'listdevices'
|
||||||
.description 'List available simulator devices by index'
|
.description 'List available simulator devices by index'
|
||||||
@ -336,6 +333,7 @@ cli.command 'listdevices'
|
|||||||
.map (line, i) -> "#{i}\t#{line.replace /\[.+\]/, ''}"
|
.map (line, i) -> "#{i}\t#{line.replace /\[.+\]/, ''}"
|
||||||
.join '\n')
|
.join '\n')
|
||||||
|
|
||||||
|
|
||||||
cli.command 'setdevice <index>'
|
cli.command 'setdevice <index>'
|
||||||
.description 'Choose simulator device by index'
|
.description 'Choose simulator device by index'
|
||||||
.action (index) ->
|
.action (index) ->
|
||||||
@ -346,6 +344,13 @@ cli.command 'setdevice <index>'
|
|||||||
config.device = pluckUuid device
|
config.device = pluckUuid device
|
||||||
writeConfig config
|
writeConfig config
|
||||||
|
|
||||||
|
|
||||||
|
cli.command 'xcode'
|
||||||
|
.description 'Open Xcode project'
|
||||||
|
.action ->
|
||||||
|
openXcode readConfig().name
|
||||||
|
|
||||||
|
|
||||||
cli.on '*', (command) ->
|
cli.on '*', (command) ->
|
||||||
logErr "Unknown command #{command[0]}. See natal --help for valid commands"
|
logErr "Unknown command #{command[0]}. See natal --help for valid commands"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user