You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnframeworkSelection{}, fmt.Errorf("no compatible frameworks found for runtime %q\n\n For upload projects, try selecting a framework instead", entry.Name)
542
-
}
543
-
544
-
fwOptions:=make([]string, len(frameworks))
545
-
fori, fw:=rangeframeworks {
546
-
fwOptions[i] =fw.Name
547
-
}
559
+
iflen(frameworks) >0 {
560
+
fwOptions:=make([]string, len(frameworks))
561
+
fori, fw:=rangeframeworks {
562
+
fwOptions[i] =fw.Name
563
+
}
548
564
549
-
fwSelected, err:=pterm.DefaultInteractiveSelect.
550
-
WithDefaultText("Framework (required for upload projects)").
551
-
WithOptions(fwOptions).
552
-
WithFilter(true).
553
-
Show()
554
-
iferr!=nil {
555
-
returnframeworkSelection{}, fmt.Errorf("could not read input: %w", err)
556
-
}
565
+
fwSelected, err:=pterm.DefaultInteractiveSelect.
566
+
WithDefaultText("Framework (required for upload projects)").
567
+
WithOptions(fwOptions).
568
+
WithFilter(true).
569
+
Show()
570
+
iferr!=nil {
571
+
returnframeworkSelection{}, fmt.Errorf("could not read input: %w", err)
572
+
}
557
573
558
-
sel.framework=fwSelected
559
-
// Use the framework's editables since they're more specific
560
-
for_, fw:=rangeframeworks {
561
-
iffw.Name==fwSelected {
562
-
sel.editables=fw.Editables
563
-
break
574
+
sel.framework=fwSelected
575
+
// Use the framework's editables since they're more specific
0 commit comments