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

Function selectFlag

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

Source from the content-addressed store, hash-verified

212}
213
214func selectFlag(cmd *cobra.Command, f *Flag, value interface{}, options []string, defaultValue *string, isUpdate bool) error {
215 if shouldAsk(cmd, f, isUpdate) {
216 return _select(f, value, options, defaultValue, isUpdate)
217 }
218
219 return nil
220}
221
222func pickFlag(cmd *cobra.Command, f *Flag, result *string, fn pickerOptionsFunc, isUpdate bool) error {
223 if shouldAsk(cmd, f, isUpdate) {

Callers 3

SelectMethod · 0.85
SelectUMethod · 0.85
pickFlagFunction · 0.85

Calls 2

shouldAskFunction · 0.85
_selectFunction · 0.85

Tested by

no test coverage detected