Eugene Mirotin
77a4c6fdc2
move available-drives command to util
2017-06-15 16:43:02 +03:00
Eugene Mirotin
08b3db717e
use individual methods promisification instead of promisifyAll
2017-03-27 12:14:55 +03:00
Tim Perry
b629ee6164
Move to preconfigured resin sdk
2017-01-25 19:33:43 +01:00
Eugene Mirotin
f17cbb1205
use the new SDK factory
2017-01-25 19:25:12 +01:00
Juan Cruz Viotti
356d2ef6b2
Inject analytics in Capitano
2016-02-12 14:34:16 -04:00
Juan Cruz Viotti
9cfce68489
Change license to Apache 2.0
2016-01-03 23:58:51 -04:00
Juan Cruz Viotti
210680c9c9
Lazy load command actions dependencies
...
In my system (MBPr 13), printing the current version takes over 2
seconds:
```sh
$ time ./bin/resin version
2.4.0
./bin/resin version 1.37s user 0.19s system 73% cpu 2.130 total
```
The CLI takes almost all of these time to parse the dependency tree
before returning control over the actually called command.
To mitigate this problem, we only require the NPM dependencies a command
requires when executing such command, and thus prevent dependencies from
being required and parsed unnecessary.
After this improvement, printing the original example (`resin version`)
returns in less than a second (2x improvement):
```sh
$ time ./bin/resin version
2.4.0
./bin/resin version 0.88s user 0.09s system 102% cpu 0.938 total
```
2015-12-07 11:48:54 -03:00
Juan Cruz Viotti
64c8420c9d
Implement device specs. Fix #99
...
Support for all devices. Tested in the following ones:
- Intel Edison.
- Raspberry Pi 2.
- Parallella.
2015-09-11 13:02:59 +03:00
mike
b0650530cc
Resin CLI Events integration. Fix #103
2015-09-05 19:15:31 +03:00
Juan Cruz Viotti
354921ca92
Add Aborted
error message when not accepting a confirmation
...
This prevents a lot of duplicate code to check for confirmation status
and exit from the current action.
2015-08-20 16:16:20 -04:00
Juan Cruz Viotti
09a5788902
Refactor keys action to use promises
2015-08-17 09:32:05 -04:00
Juan Cruz Viotti
e712e2f266
Print ssh key separately from the information table
...
Since the public key string is long, it might wrap to lines below,
causing the table layout to break.
A quick solutio is to print the ssh key after the table.
Fixes:
- https://github.com/resin-io/resin-cli/issues/151
2015-08-14 12:25:55 -04:00
Juan Cruz Viotti
50cb04b6f7
Remove unused dependencies imports from various files
2015-08-13 13:04:22 -04:00
mike
cf512cc01b
Integrate new resin-cli-visuals functionality
2015-07-29 16:34:31 +03:00
mike
5b5d1be52f
Integrate resin-cli-form
2015-07-27 19:50:47 +03:00
mike
64d83dccfb
Add promise support for Resin-SDK dependency
2015-07-24 00:24:17 +03:00
Juan Cruz Viotti
29cf4c1e89
Don't chop SSH key
2015-06-11 08:08:45 -04:00
Juan Cruz Viotti
a524bffaa2
Integrate with SDK v1.0.0
2015-03-19 11:45:07 -04:00
Juan Cruz Viotti
6a83a537c7
Implement basic documentation generation mechanism
2015-03-03 11:32:24 -04:00
Juan Cruz Viotti
65fbe12f22
Make use of new Capitano stdin support to get rid of helpers/
2015-02-10 11:32:06 -04:00
Juan Cruz Viotti
d2f319c725
Move chop functionality to Resin CLI Visuals
2015-02-06 11:22:11 -04:00
Juan Cruz Viotti
0a7b83308a
Add TODO on actions/keys about extracting ssh key chop
2015-02-04 15:17:51 -04:00
Juan Cruz Viotti
a275de436d
Make use of simplified table widget
2015-01-22 13:06:02 -04:00
Juan Cruz Viotti
50325d0f8f
Make use of resin-cli-visuals and get rid of local ui module
2015-01-21 09:50:19 -04:00
Juan Cruz Viotti
d49677581b
Make use of Capitano permissions feature
2015-01-16 09:34:59 -03:00
Juan Cruz Viotti
5abc4e550f
Move command declarations next to their definitions
2015-01-15 14:18:39 -03:00
Juan Cruz Viotti
a6282d2b28
Get rid of log module
...
Didn't provide that much value
2015-01-15 11:36:43 -03:00
Juan Cruz Viotti
3e055b32d2
Update Capitano to v1.2.0 and make use of done callback feature
2015-01-15 10:47:17 -03:00
Juan Cruz Viotti
cdeaab18c8
Remove key trimming logic as it was moved to the SDK
2015-01-09 12:54:35 -03:00
Juan Cruz Viotti
05812ba442
Implement and make use of errors.handleCallback()
...
This function is introduced to remove some duplication
2015-01-09 12:22:18 -03:00
Juan Cruz Viotti
12f46be691
Partially get rid of nested sdk
2015-01-08 09:39:38 -03:00
Juan Cruz Viotti
07c57d335b
Refactor table to get rid of map feature
2015-01-06 14:12:11 -03:00
Juan Cruz Viotti
af98a89e51
Make errors.handle handle EISDIR and ENOENT
2015-01-06 13:54:40 -03:00
Juan Cruz Viotti
e9caca8c24
Rename error code to error exit code
2015-01-06 13:46:31 -03:00
Juan Cruz Viotti
45a4f8eda0
Remove unnecessary object keys deletion
2015-01-06 13:15:40 -03:00
Juan Cruz Viotti
0746723abd
Decouple client code from resin.errors
2014-12-22 15:29:15 -04:00
Juan Cruz Viotti
212c06e5a2
Decouple client code from server by creating key model
2014-12-22 15:18:47 -04:00
Juan Cruz Viotti
46ebb7b1fd
Move errors.handle() out of resin sdk
2014-12-22 12:47:12 -04:00
Juan Cruz Viotti
2351fa25a0
Move log out of resin sdk
2014-12-22 12:41:14 -04:00
Juan Cruz Viotti
893d836937
Implement stdin support for key add command
2014-12-22 10:30:21 -04:00
Juan Cruz Viotti
006f3e8aca
Implement key add command
2014-12-19 13:06:58 -04:00
Juan Cruz Viotti
6cfe2bdc49
Make use of Capitano for command line parsing
2014-12-19 09:15:38 -04:00
Juan Cruz Viotti
37797f3416
Get rid of formatLongString in favor of _.chop
2014-12-09 14:35:45 -04:00
Juan Cruz Viotti
4b74ec7fc4
Move UI outside resin module
2014-12-05 12:00:15 -04:00
Juan Cruz Viotti
e7495fa72d
Move cli outside of resin module
2014-12-05 11:51:52 -04:00
Juan Cruz Viotti
0c55a4afb6
Integrate CliConf with application
2014-12-05 11:09:31 -04:00
Juan Cruz Viotti
511e753256
Support user defined configuration file
2014-12-03 12:03:54 -04:00
Juan Cruz Viotti
d3eac45955
Move all urls to config
2014-12-01 10:06:03 -04:00
Juan Cruz Viotti
594a358bef
Implement and make use of plugin loader (only in preferences for now)
2014-11-27 11:22:48 -04:00
Juan Cruz Viotti
5e3d973725
Implement command permissions
2014-11-27 10:06:11 -04:00