Merge pull request #51 from resin-io/feature/nicer-logs

Expose logs as cli.actions.logs instead of cli.actions.logs.logs
This commit is contained in:
Juan Cruz Viotti 2015-05-18 10:38:41 -04:00
commit 992b04d521
4 changed files with 4 additions and 4 deletions

View File

@ -7,7 +7,7 @@
LOGS_HISTORY_COUNT = 200;
exports.logs = {
module.exports = {
signature: 'logs <uuid>',
description: 'show device logs',
help: 'Use this command to show logs for a specific device.\n\nBy default, the command prints all log messages and exit.\n\nTo limit the output to the n last lines, use the `--num` option along with a number.\nThis is similar to doing `resin logs <uuid> | tail -n X`.\n\nTo continuously stream output, and see new logs in real time, use the `--tail` option.\n\nNote that for now you need to provide the whole UUID for this command to work correctly.\n\nThis is due to some technical limitations that we plan to address soon.\n\nExamples:\n\n $ resin logs 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828\n $ resin logs 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828 --num 20\n $ resin logs 23c73a12e3527df55c60b9ce647640c1b7da1b32d71e6a39849ac0f00db828 --tail',

View File

@ -126,7 +126,7 @@
capitano.command(actions.env.remove);
capitano.command(actions.logs.logs);
capitano.command(actions.logs);
capitano.command(actions.os.download);

View File

@ -3,7 +3,7 @@ resin = require('resin-sdk')
LOGS_HISTORY_COUNT = 200
exports.logs =
module.exports =
signature: 'logs <uuid>'
description: 'show device logs'
help: '''

View File

@ -98,7 +98,7 @@ capitano.command(actions.env.rename)
capitano.command(actions.env.remove)
# ---------- Logs Module ----------
capitano.command(actions.logs.logs)
capitano.command(actions.logs)
# ---------- OS Module ----------
capitano.command(actions.os.download)