File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,13 @@ const promptStep = async (step) => {
109109 const type = input . type || 'select' ;
110110
111111 if ( type === 'select' ) {
112+ // Auto-select if only one option
113+ if ( input . options . length === 1 ) {
114+ const opt = input . options [ 0 ] ;
115+ p . log . info ( `${ step . title } ${ opt . label } ` ) ;
116+ return opt . value ;
117+ }
118+
112119 const options = input . options . map ( opt => ( {
113120 value : opt . value ,
114121 label : opt . label + ( opt . recommended ? ' (Recommended)' : '' ) ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @trustgraph/config" ,
3- "version" : " 1.0.0 " ,
3+ "version" : " 1.0.1 " ,
44 "description" : " TrustGraph Configuration CLI - Interactive terminal wizard" ,
55 "type" : " module" ,
66 "main" : " cli.js" ,
You can’t perform that action at this time.
0 commit comments