@@ -713,7 +713,7 @@ func setupQuickstartCmdExperimental(cli *cli) *cobra.Command {
713713 if ! inputs .App && ! inputs .API {
714714 var selections []string
715715 if err := prompt .AskMultiSelect (
716- "What do you want to set up ? (select whatever applies)" ,
716+ "What do you want to create ? (select whatever applies)" ,
717717 & selections ,
718718 "App" , "API" ,
719719 ); err != nil {
@@ -742,17 +742,31 @@ func setupQuickstartCmdExperimental(cli *cli) *cobra.Command {
742742
743743 if detection .Detected {
744744 if len (detection .AmbiguousCandidates ) > 1 {
745- // Multiple package.json deps matched — ask user to disambiguate.
746- cli .renderer .Infof ("Multiple frameworks detected in package.json: %s" , strings .Join (detection .AmbiguousCandidates , ", " ))
747- if inputs .Framework == "" {
748- q := prompt .SelectInput ("framework" , "Select the framework" , "" ,
749- detection .AmbiguousCandidates , detection .AmbiguousCandidates [0 ], true )
750- if err := prompt .AskOne (q , & inputs .Framework ); err != nil {
751- return fmt .Errorf ("failed to select framework: %v" , err )
752- }
745+ // Multiple package.json deps matched — show partial summary and ask user to disambiguate.
746+ cli .renderer .Infof ("Detected in current directory" )
747+ cli .renderer .Infof ("%-12s%s" , "Framework" , "Could not be determined" )
748+ cli .renderer .Infof ("%-12s%s" , "App type" , detectionFriendlyAppType (detection .Type ))
749+ cli .renderer .Infof ("%-12s%s" , "App name" , detection .AppName )
750+ if detection .Port > 0 {
751+ cli .renderer .Infof ("%-12s%d" , "Port" , detection .Port )
753752 }
754- if inputs .Name == "" {
755- inputs .Name = detection .AppName
753+ if prompt .Confirm ("Do you want to proceed with the detected values?" ) {
754+ if inputs .Type == "" {
755+ inputs .Type = detection .Type
756+ }
757+ if inputs .Port == 0 {
758+ inputs .Port = detection .Port
759+ }
760+ if inputs .Name == "" {
761+ inputs .Name = detection .AppName
762+ }
763+ if inputs .Framework == "" {
764+ q := prompt .SelectInput ("framework" , "Select your framework" , "" ,
765+ detection .AmbiguousCandidates , detection .AmbiguousCandidates [0 ], true )
766+ if err := prompt .AskOne (q , & inputs .Framework ); err != nil {
767+ return fmt .Errorf ("failed to select framework: %v" , err )
768+ }
769+ }
756770 }
757771 } else if detection .Framework != "" {
758772 // Single clear detection — show summary and confirm.
@@ -787,6 +801,12 @@ func setupQuickstartCmdExperimental(cli *cli) *cobra.Command {
787801 }
788802 }
789803 }
804+ } else {
805+ // No detection signal found — notify the user and pre-fill name from directory.
806+ cli .renderer .Warnf ("Auto detection Failed: Unable to auto detect application" )
807+ if inputs .Name == "" {
808+ inputs .Name = detection .AppName
809+ }
790810 }
791811 }
792812
0 commit comments