@@ -30,6 +30,10 @@ interface Options extends ParsedOptions {
3030 q : boolean
3131 quiet : boolean
3232
33+ /** Automatically accept all choices from the current profile */
34+ a : boolean
35+ auto : boolean
36+
3337 /** Interactive guide mode? [default: false] */
3438 i : boolean
3539 interactive : boolean
@@ -67,7 +71,11 @@ function doMadwizard(
6771 ...( parsedOptions . i ? [ "-i" ] : [ ] ) ,
6872 ] ,
6973 undefined ,
70- { store : process . env . GUIDEBOOK_STORE , verbose : parsedOptions . V }
74+ {
75+ store : process . env . GUIDEBOOK_STORE ,
76+ verbose : parsedOptions . V ,
77+ interactive : parsedOptions . i || ! parsedOptions . a ,
78+ }
7179 )
7280 return true
7381 }
@@ -90,8 +98,8 @@ function doMadwizard(
9098/** Register Kui Commands */
9199export default function registerMadwizardCommands ( registrar : Registrar ) {
92100 const flags = {
93- boolean : [ "u" , "V" , "n" , "q" , "i" ] ,
94- alias : { quiet : [ "q" ] , interactive : [ "i" ] } ,
101+ boolean : [ "u" , "V" , "n" , "q" , "i" , "a" ] ,
102+ alias : { quiet : [ "q" ] , interactive : [ "i" ] , auto : [ "a" ] } ,
95103 }
96104
97105 registrar . listen ( "/profile" , doMadwizard ( true , "profile" ) )
0 commit comments