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

Function prepareInteractivity

internal/cli/cli.go:190–196  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

188}
189
190func prepareInteractivity(cmd *cobra.Command) {
191 if canPrompt(cmd) || !iostream.IsInputTerminal() {
192 cmd.Flags().VisitAll(func(flag *pflag.Flag) {
193 _ = cmd.Flags().SetAnnotation(flag.Name, cobra.BashCompOneRequiredFlag, []string{"false"})
194 })
195 }
196}

Callers 1

buildRootCmdFunction · 0.85

Calls 2

IsInputTerminalFunction · 0.92
canPromptFunction · 0.85

Tested by

no test coverage detected