mirror of
https://github.com/status-im/re-natal.git
synced 2025-01-13 06:04:21 +00:00
validate interface name in init command
This commit is contained in:
parent
59edcd3591
commit
f9631e3be3
@ -504,7 +504,8 @@ cli.command 'init <name>'
|
||||
e.g.
|
||||
re-natal init HelloWorld
|
||||
'''
|
||||
|
||||
unless interfaceConf[cmd.interface]
|
||||
logErr "Unsupported React interface: #{cmd.interface}, one of [#{interfaceNames}] was expected."
|
||||
ensureFreePort -> init(cmd.interface, name)
|
||||
|
||||
cli.command 'upgrade'
|
||||
|
Loading…
x
Reference in New Issue
Block a user