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

Function isRootCmd

pkg/cmd/root/help.go:62–64  ·  view source on GitHub ↗
(command *cobra.Command)

Source from the content-addressed store, hash-verified

60}
61
62func isRootCmd(command *cobra.Command) bool {
63 return command != nil && !command.HasParent()
64}
65
66func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, args []string) {
67 cs := f.IOStreams.ColorScheme()

Callers 1

rootHelpFuncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected