@@ -82,15 +82,15 @@ func demoSelect(_ *gcli.Command) {
82
82
[]string {"chengdu" , "beijing" , "shanghai" },
83
83
"" ,
84
84
)
85
- color .Comment .Println ("your select is: " , ans )
85
+ color .Comment .Println ("your select is:" , ans )
86
86
fmt .Println ("----------------------------------------------------------" )
87
87
88
88
ans1 := interact .Choice (
89
89
"Your age(use int array)?" ,
90
90
[]int {23 , 34 , 45 },
91
91
"" ,
92
92
)
93
- color .Comment .Println ("your select is: " , ans1 )
93
+ color .Comment .Println ("your select is:" , ans1 )
94
94
95
95
fmt .Println ("----------------------------------------------------------" )
96
96
@@ -99,7 +99,7 @@ func demoSelect(_ *gcli.Command) {
99
99
map [string ]string {"a" : "chengdu" , "b" : "beijing" , "c" : "shanghai" },
100
100
"a" ,
101
101
)
102
- color .Comment .Println ("your select is: " , ans2 )
102
+ color .Comment .Println ("your select is:" , ans2 )
103
103
}
104
104
105
105
func demoMultiSelect (_ * gcli.Command ) {
@@ -118,7 +118,7 @@ func demoMultiSelect(_ *gcli.Command) {
118
118
map [string ]string {"a" : "chengdu" , "b" : "beijing" , "c" : "shanghai" },
119
119
[]string {"a" },
120
120
)
121
- color .Comment .Println ("your select is: " , ans2 )
121
+ color .Comment .Println ("your select is:" , ans2 )
122
122
}
123
123
124
124
func demoConfirm (_ * gcli.Command ) {
@@ -139,7 +139,7 @@ func demoPassword(_ *gcli.Command) {
139
139
// color.Comment.Println("you input password is: ", pwd)
140
140
141
141
pwd := interact .ReadPassword ()
142
- color .Comment .Println ("Your input password is: " , pwd )
142
+ color .Comment .Println ("Your input password is:" , pwd )
143
143
}
144
144
145
145
func hiddenInputTest () {
@@ -163,5 +163,5 @@ func demoAnswerIsYes(_ *gcli.Command) {
163
163
164
164
func demoQuestion (_ * gcli.Command ) {
165
165
ans := interact .Ask ("Your name? " , "" , nil , 3 )
166
- color .Comment .Println ("Your answer is: " , ans )
166
+ color .Comment .Println ("Your answer is:" , ans )
167
167
}
0 commit comments