MCPcopy Create free account
hub / github.com/algolia/cli / rootUsageFunc

Function rootUsageFunc

pkg/cmd/root/help.go:13–18  ·  view source on GitHub ↗
(
	IOStreams *iostreams.IOStreams,
	command *cobra.Command,
)

Source from the content-addressed store, hash-verified

11)
12
13func rootUsageFunc(
14 IOStreams *iostreams.IOStreams,
15 command *cobra.Command,
16) func(cmd *cobra.Command) error {
17 return cmdutil.UsageFuncDefault(IOStreams, command)
18}
19
20func rootFlagErrorFunc(cmd *cobra.Command, err error) error {
21 if err == pflag.ErrHelp {

Callers 2

nestedSuggestFuncFunction · 0.85
NewRootCmdFunction · 0.85

Calls 1

UsageFuncDefaultFunction · 0.92

Tested by

no test coverage detected