mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-20 22:23:07 +00:00
1bc78edf71
Main changes: - Use the `columnify` module to display the commands instead of using manual parsing. - Extract logic to create a string representation from an option signature to Capitano, and reuse here. See https://github.com/resin-io/capitano/pull/28 Some bugs were caught and fixes during the refactoring: - In command help, if the command didn't exist, we reused default Capitanos command not found function which uses `process.exit(1)`. This was changed to pass a custom error to `done()`, so the command fails correctly when using programatically. - General help didn't call `done()` at all, thus causing problems if using the command programatically someday. |
||
---|---|---|
.. | ||
app.js | ||
auth.js | ||
command-options.js | ||
device.js | ||
environment-variables.js | ||
help.js | ||
index.js | ||
info.js | ||
keys.js | ||
logs.js | ||
notes.js | ||
plugin.js | ||
preferences.js | ||
update.js | ||
wizard.js |