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

Function isRootCmd

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

Source from the content-addressed store, hash-verified

86}
87
88func isRootCmd(command *cobra.Command) bool {
89 return command != nil && !command.HasParent()
90}
91
92func rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, _ []string) {
93 flags := command.Flags()

Callers 2

rootHelpFuncFunction · 0.85
WriteHelpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected