Commit Graph

29 Commits

Author SHA1 Message Date
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