Move os network params options to command-options

This commit is contained in:
Juan Cruz Viotti 2015-02-03 14:52:17 -04:00
parent 3f51739e2e
commit 3ee228c862
2 changed files with 22 additions and 18 deletions

View File

@ -10,3 +10,21 @@ exports.application =
description: 'application id'
alias: [ 'a', 'app' ]
required: 'You have to specify an application'
exports.network =
signature: 'network'
parameter: 'network'
description: 'network type'
alias: 'n'
exports.wifiSsid =
signature: 'ssid'
parameter: 'ssid'
description: 'wifi ssid, if network is wifi'
alias: 's'
exports.wifiKey =
signature: 'key'
parameter: 'key'
description: 'wifi key, if network is wifi'
alias: 'k'

View File

@ -33,24 +33,10 @@ exports.download =
$ resin os download 91 --network ethernet --output ~/MyResinOS.zip
'''
options: [
{
signature: 'network'
parameter: 'network'
description: 'network type'
alias: 'n'
}
{
signature: 'ssid'
parameter: 'ssid'
description: 'wifi ssid, if network is wifi'
alias: 's'
}
{
signature: 'key'
parameter: 'key'
description: 'wifi key, if network is wifi'
alias: 'k'
}
commandOptions.network
commandOptions.wifiSsid
commandOptions.wifiKey
{
signature: 'output'
parameter: 'output'