mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-23 15:32:22 +00:00
Move version action to actions/
This commit is contained in:
parent
c4da5f0008
commit
72d08ffbbf
@ -1,5 +1,6 @@
|
||||
module.exports =
|
||||
app: require('./app')
|
||||
info: require('./info')
|
||||
auth: require('./auth')
|
||||
device: require('./device')
|
||||
env: require('./environment-variables')
|
||||
|
5
lib/actions/info.coffee
Normal file
5
lib/actions/info.coffee
Normal file
@ -0,0 +1,5 @@
|
||||
packageJSON = require('../../package.json')
|
||||
log = require('../log/log')
|
||||
|
||||
exports.version = ->
|
||||
log.out(packageJSON.version)
|
@ -2,7 +2,6 @@ _ = require('lodash')
|
||||
path = require('path')
|
||||
capitano = require('capitano')
|
||||
resin = require('resin-sdk')
|
||||
packageJSON = require('../package.json')
|
||||
actions = require('./actions')
|
||||
log = require('./log/log')
|
||||
errors = require('./errors/errors')
|
||||
@ -11,8 +10,7 @@ plugin = require('./plugin/plugin')
|
||||
capitano.command
|
||||
signature: 'version'
|
||||
description: 'output the version number'
|
||||
action: ->
|
||||
log.out(packageJSON.version)
|
||||
action: actions.info.version
|
||||
|
||||
capitano.command
|
||||
signature: 'help [command...]'
|
||||
|
Loading…
Reference in New Issue
Block a user