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

Function askIntFlag

internal/cli/flags.go:207–212  ·  view source on GitHub ↗
(cmd *cobra.Command, f *Flag, value *int, defaultValue *string, isUpdate bool)

Source from the content-addressed store, hash-verified

205}
206
207func askIntFlag(cmd *cobra.Command, f *Flag, value *int, defaultValue *string, isUpdate bool) error {
208 if shouldAsk(cmd, f, isUpdate) {
209 return askInt(f, value, defaultValue, isUpdate)
210 }
211 return nil
212}
213
214func selectFlag(cmd *cobra.Command, f *Flag, value interface{}, options []string, defaultValue *string, isUpdate bool) error {
215 if shouldAsk(cmd, f, isUpdate) {

Callers 2

AskIntMethod · 0.85
AskIntUMethod · 0.85

Calls 2

shouldAskFunction · 0.85
askIntFunction · 0.85

Tested by

no test coverage detected