mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-14 22:46:33 +00:00
Add TODO on actions/keys about extracting ssh key chop
This commit is contained in:
parent
33b66effc2
commit
0a7b83308a
@ -36,6 +36,8 @@ exports.info =
|
||||
action: (params, options, done) ->
|
||||
resin.models.key.get params.id, (error, key) ->
|
||||
return done(error) if error?
|
||||
|
||||
# TODO: Move this chop functionality to resin.models.key
|
||||
key.public_key = '\n' + _.str.chop(key.public_key, resin.settings.get('sshKeyWidth')).join('\n')
|
||||
console.log(visuals.widgets.table.vertical(key, [ 'id', 'title', 'public_key' ]))
|
||||
return done()
|
||||
|
Loading…
x
Reference in New Issue
Block a user