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

Function overrideHelpAndVersionFlagText

internal/cli/root.go:215–229  ·  view source on GitHub ↗
(cmd *cobra.Command)

Source from the content-addressed store, hash-verified

213}
214
215func overrideHelpAndVersionFlagText(cmd *cobra.Command) {
216 cmd.Flags().BoolP("version", "v", false, "Version for auth0.")
217
218 setHelpFlagTextFunc := func(c *cobra.Command) {
219 c.Flags().BoolP("help", "h", false, fmt.Sprintf("Help for %s.", c.Name()))
220 }
221
222 setHelpFlagTextFunc(cmd)
223 for _, c := range cmd.Commands() {
224 setHelpFlagTextFunc(c)
225 for _, c := range c.Commands() {
226 setHelpFlagTextFunc(c)
227 }
228 }
229}
230
231func renderErrorMessage(display *display.Renderer, errorMessage string) {
232 display.Heading(ansi.Red("error"))

Callers 1

ExecuteFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected