Add history to maxctrl cli
This commit is contained in:
@ -156,10 +156,14 @@ module.exports.execute = function(argv, opts) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function askQuestion() {
|
function askQuestion() {
|
||||||
|
inquirer.registerPrompt('command', require('inquirer-command-prompt'))
|
||||||
|
|
||||||
var question = [ {
|
var question = [ {
|
||||||
name: 'maxctrl',
|
name: 'maxctrl',
|
||||||
prefix: '',
|
prefix: '',
|
||||||
suffix: ''
|
suffix: '',
|
||||||
|
type: 'command',
|
||||||
|
message: 'maxctrl'
|
||||||
}]
|
}]
|
||||||
var running = true
|
var running = true
|
||||||
|
|
||||||
|
|||||||
967
maxctrl/package-lock.json
generated
967
maxctrl/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,11 +20,12 @@
|
|||||||
"cli-table": "^0.3.1",
|
"cli-table": "^0.3.1",
|
||||||
"globby": "^8.0.2",
|
"globby": "^8.0.2",
|
||||||
"inquirer": "^6.2.1",
|
"inquirer": "^6.2.1",
|
||||||
|
"inquirer-command-prompt": "0.0.8",
|
||||||
"lodash": "^4.17.11",
|
"lodash": "^4.17.11",
|
||||||
"lodash-getpath": "^0.2.4",
|
"lodash-getpath": "^0.2.4",
|
||||||
"readline-sync": "^1.4.9",
|
"readline-sync": "^1.4.9",
|
||||||
"request": "^2.88.0",
|
"request": "^2.88.0",
|
||||||
"request-promise-native": "^1.0.3",
|
"request-promise-native": "^1.0.7",
|
||||||
"yargs": "^8.0.2"
|
"yargs": "^8.0.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
Reference in New Issue
Block a user