Tim Perry
4907fccf48
Rename everything from 'resin' to 'balena'
...
Change-type: major
2018-10-29 22:29:02 +01:00
Tim Perry
430d4aeaa7
Be explicit about how much initial history log tailing includes
...
Change-Type: patch
2018-07-20 16:32:31 +02:00
Tim Perry
e62e8b88c2
Simplify logs promises after review
2018-07-12 15:38:27 +02:00
Tim Perry
4388a248b9
Make sure we don't duplicate historical logs when streaming
2018-07-12 15:23:33 +02:00
Tim Perry
f9cf0aaf23
Remove a couple of artifacts of the pubnub logs implementation
2018-07-12 15:10:16 +02:00
Tim Perry
7cb27283c5
Update logs action to use the MC SDK
2018-07-12 01:03:16 +02:00
Thodoris Greasidis
d1c773360f
Fix uuid params being parsed a numbers
...
Connects-To: #489
Change-Type: patch
2018-02-01 17:48:01 +02:00
Tim Perry
6daed83d88
Lint TypeScript and CoffeeScript with resin-lint
...
Change-Type: patch
2018-01-09 17:14:49 +01:00
Eugene Mirotin
77a4c6fdc2
move available-drives command to util
2017-06-15 16:43:02 +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
fb1ef0df63
Promote shorter uuids in all examples
2016-01-21 10:23:40 -04:00
Juan Cruz Viotti
9cfce68489
Change license to Apache 2.0
2016-01-03 23:58:51 -04:00
Juan Cruz Viotti
26e3cb7957
Add timestamp to logs lines
2015-12-11 20:28:29 -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
f8470287c1
Separate general help per topic relevance
...
Only list primary commands by default, unless a `--verbose` option is
passed to list the additional ones.
Fixes: https://github.com/resin-io/resin-cli/issues/101
2015-10-02 08:50:32 -04:00
Juan Cruz Viotti
83382cc8f7
Merge pull request #145 from resin-io/jviotti/fix/logs-help-indentation
...
Fix logs command help string indentation
2015-08-14 08:27:38 -04:00
Juan Cruz Viotti
69566f7fc3
Force logs command to exit when not in --tail mode. Fix #14 .
...
PubNub keeps the process alive after a history query for some reason, so
trying to print the logs history like:
$ resin logs <uuid>
Will result in the logs being printed correctly, but the process waiting
infinitely without ending.
The workaround consists in forcing `process.exit` to exit the process
with an error code zero.
Caveats:
- This workaround prevents this command to be used programatically.
Issue: https://github.com/resin-io/resin-cli/issues/14
2015-08-13 15:08:16 -04:00
Juan Cruz Viotti
ef35ebf79d
Fix logs command help string indentation
...
For some reason it was indented a few times unnecesarily.
2015-08-13 14:33:19 -04:00
mike
64d83dccfb
Add promise support for Resin-SDK dependency
2015-07-24 00:24:17 +03:00
Juan Cruz Viotti
78af9bbb10
Expose logs as cli.actions.logs instead of cli.actions.logs.logs
2015-05-18 09:37:27 -04:00
Juan Cruz Viotti
84900aa588
Remove outdated uuid checking help message
2015-04-27 10:51:26 -04:00
Juan Cruz Viotti
9a3c844336
Print logs correctly, as they recently got a message field added
2015-04-27 09:30:57 -04:00
Juan Cruz Viotti
6a83a537c7
Implement basic documentation generation mechanism
2015-03-03 11:32:24 -04:00
Juan Cruz Viotti
65729012b6
Fix logs display
2015-02-10 15:43:39 -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
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
807bc2f047
Make use of new SDK logs feature
2015-01-09 10:34:26 -03:00
Juan Cruz Viotti
bf7430d7fd
Move logs logic to a nested logs module
2015-01-09 09:42:46 -03:00
Juan Cruz Viotti
12f46be691
Partially get rid of nested sdk
2015-01-08 09:39:38 -03: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
6cfe2bdc49
Make use of Capitano for command line parsing
2014-12-19 09:15:38 -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
d4b189f785
Move device logs pubnub event to config
2014-12-01 09:50:18 -04:00
Juan Cruz Viotti
8f13e9bf44
Implement log tail option
2014-11-28 20:51:08 -04:00
Juan Cruz Viotti
25af7a2231
Implement logs -n/--num
2014-11-28 20:18:59 -04:00
Juan Cruz Viotti
4702e7b563
Refactor valid UUID check into helpers
2014-11-28 15:36:03 -04:00
Juan Cruz Viotti
721ef8413a
Implement logs command
2014-11-28 15:11:15 -04:00