File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,11 +57,14 @@ var pipelinesCmd = &cobra.Command{
57
57
58
58
if len (runtimes ) != 0 {
59
59
var selection int
60
+ for index , runtime := range runtimes {
61
+ cmd .Printf ("%d. %s\n " , index + 1 , runtime ["metadata" ].(map [string ]interface {})["name" ])
62
+ }
60
63
for {
61
- cmd .Println ( "Please select the runtime to gather data from (Number):" )
64
+ cmd .Print ( " \n Please select the runtime to gather data from (Number): " )
62
65
_ , err := fmt .Scanf ("%d" , & selection )
63
66
if err != nil || selection < 1 || selection > len (runtimes ) {
64
- cmd .Println ("Invalid selection. Please enter a number corresponding to one of the listed runtimes." )
67
+ cmd .PrintErrln ("Invalid selection. Please enter a number corresponding to one of the listed runtimes." )
65
68
continue
66
69
}
67
70
break
You can’t perform that action at this time.
0 commit comments