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

Function canPrompt

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

Source from the content-addressed store, hash-verified

166}
167
168func canPrompt(cmd *cobra.Command) bool {
169 noInput, err := cmd.Root().Flags().GetBool("no-input")
170 if err != nil {
171 return false
172 }
173
174 return iostream.IsInputTerminal() && iostream.IsOutputTerminal() && !noInput
175}
176
177// noLocalFlagSet returns true if no local flags (excluding global flags) are set for the command.
178func noLocalFlagSet(cmd *cobra.Command) bool {

Callers 15

createNetworkACLCmdFunction · 0.85
updateNetworkACLCmdFunction · 0.85
deleteNetworkACLCmdFunction · 0.85
apiCmdRunFunction · 0.85
deleteEmailProviderCmdFunction · 0.85
deleteUserCmdFunction · 0.85
importUsersCmdFunction · 0.85
shouldCancelOverwriteFunction · 0.85
fetchRenderSettingsFunction · 0.85

Calls 2

IsInputTerminalFunction · 0.92
IsOutputTerminalFunction · 0.92

Tested by

no test coverage detected