mirror of
https://github.com/balena-io/balena-cli.git
synced 2024-12-26 00:41:04 +00:00
25 lines
518 B
CoffeeScript
25 lines
518 B
CoffeeScript
visuals = require('resin-cli-visuals')
|
|
drive = require('../drive/drive')
|
|
|
|
exports.list =
|
|
signature: 'drives'
|
|
description: 'list available drives'
|
|
help: '''
|
|
Use this command to list all drives that are connected to your machine.
|
|
|
|
Examples:
|
|
$ resin drives
|
|
'''
|
|
permission: 'user'
|
|
action: (params, options, done) ->
|
|
drive.listDrives (error, drives) ->
|
|
return done(error) if error?
|
|
|
|
console.log visuals.widgets.table.horizontal drives, [
|
|
'device'
|
|
'description'
|
|
'size'
|
|
]
|
|
|
|
return done()
|