mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-15 15:06:35 +00:00
Move help facade to help actions module
This commit is contained in:
parent
72d08ffbbf
commit
9a3b048b9f
lib
@ -110,3 +110,9 @@ exports.command = (params) ->
|
||||
log.out(getOptionHelp(option, optionSignatureMaxLength))
|
||||
|
||||
log.out()
|
||||
|
||||
exports.help = (params) ->
|
||||
if params.command?
|
||||
exports.command(arguments...)
|
||||
else
|
||||
exports.general(arguments...)
|
||||
|
@ -15,11 +15,7 @@ capitano.command
|
||||
capitano.command
|
||||
signature: 'help [command...]'
|
||||
description: 'show help'
|
||||
action: (params) ->
|
||||
if params.command?
|
||||
actions.help.command(params)
|
||||
else
|
||||
actions.help.general()
|
||||
action: actions.help.help
|
||||
|
||||
capitano.command
|
||||
signature: '*'
|
||||
|
Loading…
x
Reference in New Issue
Block a user