mirror of
https://github.com/balena-io/balena-cli.git
synced 2025-04-13 14:12:57 +00:00
Implement widgets module
This commit is contained in:
parent
53c25412c3
commit
275eed82f0
16
lib/widgets/widgets.coffee
Normal file
16
lib/widgets/widgets.coffee
Normal file
@ -0,0 +1,16 @@
|
||||
_ = require('lodash')
|
||||
inquirer = require('inquirer')
|
||||
|
||||
exports.login = (callback) ->
|
||||
inquirer.prompt([
|
||||
{
|
||||
type: 'input'
|
||||
name: 'username'
|
||||
message: 'Username'
|
||||
}
|
||||
{
|
||||
type: 'password'
|
||||
name: 'password'
|
||||
message: 'Password'
|
||||
}
|
||||
], _.partial(callback, null))
|
@ -34,6 +34,7 @@
|
||||
"mkdirp": "~0.5.0",
|
||||
"resin-platform-api": "git+ssh://git@bitbucket.org/rulemotion/resin-platform-api.git#master",
|
||||
"bluebird": "~2.3.11",
|
||||
"open": "0.0.5"
|
||||
"open": "0.0.5",
|
||||
"inquirer": "~0.8.0"
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user