Help us shape the future of Go! Take the 2026 Go Developer Survey

help

package
v1.114.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HasFailed

func HasFailed() bool

HasFailed signals that the main process should exit with non-zero status

func RootHelpFunc

func RootHelpFunc(streams *iostreams.IOStreams, command *cobra.Command, args []string)

RootHelpFunc renders help text for the given command. Help is a successful-output channel, so it is written to streams.StdOut. The "unknown command" suggestion path is diagnostic and is routed to streams.StdErr. See NewCmdRoot for the wiring and gitlab-org/cli#8371 for the motivation.

func RootUsageFunc

func RootUsageFunc(out io.Writer, command *cobra.Command) error

RootUsageFunc renders a command's usage to out. Callers route diagnostic usage messages to stderr; see NewCmdRoot for the wiring and gitlab-org/cli#8371 for why we no longer rely on cobra's c.Print/SetOut.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL