Merge pull request #9 from resin-io/feature/version

Remove bundled node version from version command
This commit is contained in:
Juan Cruz Viotti 2015-04-07 10:56:18 -04:00
commit cd28c985ce
3 changed files with 5 additions and 7 deletions

View File

@ -6,10 +6,9 @@
exports.version = {
signature: 'version',
description: 'output the version number',
help: 'Display the Resin CLI, as well as the bundled NodeJS version.',
help: 'Display the Resin CLI version.',
action: function() {
console.log(packageJSON.name + ": " + packageJSON.version);
return console.log("node: " + process.version);
return console.log(packageJSON.version);
}
};

View File

@ -1,3 +1,3 @@
# version
Display the Resin CLI, as well as the bundled NodeJS version.
Display the Resin CLI version.

View File

@ -4,8 +4,7 @@ exports.version =
signature: 'version'
description: 'output the version number'
help: '''
Display the Resin CLI, as well as the bundled NodeJS version.
Display the Resin CLI version.
'''
action: ->
console.log("#{packageJSON.name}: #{packageJSON.version}")
console.log("node: #{process.version}")
console.log(packageJSON.version)