Juan Cruz Viotti 1bc78edf71 Refactor help module
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.
2015-08-13 14:19:07 -04:00
2015-03-04 12:16:35 -04:00
2015-08-13 14:19:07 -04:00
2015-08-12 08:17:46 -04:00
2015-07-07 18:01:25 -04:00
2015-08-13 14:19:07 -04:00
2014-10-31 09:49:57 -04:00
2015-04-06 17:05:13 -04:00
2015-04-06 10:08:49 -04:00
2015-08-06 12:12:44 -04:00
2014-10-31 09:48:53 -04:00
2015-08-04 10:00:09 -04:00
2015-03-05 15:43:39 -04:00
2015-08-13 14:19:07 -04:00
2015-05-21 10:52:37 -04:00

Resin CLI

npm version dependencies Build Status Build status

The official Resin CLI tool.

Installing

$ npm install -g resin-cli

Running locally

$ ./bin/resin

Tests

You can run the Mocha test suite, you can do:

$ gulp test

Development mode

The following command will watch for any changes and will run a linter and the whole test suite:

$ gulp watch

If you set DEBUG environment variable, errors will print with a stack trace:

$ DEBUG=true resin ...

Documentation

You can renegerate the documentation with:

$ npm run-script doc

Manual pages

UNIX manual pages reside in man/

You can regenerate UNIX roff manual pages from markdown with:

$ gulp man

If you add a new man page, remember to add the generated filename to the man array in package.json.

Caveats

Description
The official balena CLI tool.
Readme Pixar
Languages
TypeScript 97.9%
JavaScript 1.5%
Shell 0.4%
EJS 0.1%