MCPcopy Create free account
hub / github.com/auth0/auth0-cli / askManyFlag

Function askManyFlag

internal/cli/flags.go:183–195  ·  view source on GitHub ↗
(cmd *cobra.Command, f *Flag, value interface{}, defaultValue *string, isUpdate bool)

Source from the content-addressed store, hash-verified

181}
182
183func askManyFlag(cmd *cobra.Command, f *Flag, value interface{}, defaultValue *string, isUpdate bool) error {
184 if shouldAsk(cmd, f, isUpdate) {
185 var strInput string
186
187 if err := ask(f, &strInput, defaultValue, isUpdate); err != nil {
188 return err
189 }
190
191 *value.(*[]string) = commaSeparatedStringToSlice(strInput)
192 }
193
194 return nil
195}
196
197func askBoolFlag(cmd *cobra.Command, f *Flag, value *bool, defaultValue *bool, isUpdate bool) error {
198 if shouldAsk(cmd, f, isUpdate) {

Callers 2

AskManyMethod · 0.85
AskManyUMethod · 0.85

Calls 3

shouldAskFunction · 0.85
askFunction · 0.85

Tested by

no test coverage detected