Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/cli/cli
/ isRootCmd
Function
isRootCmd
pkg/cmd/root/help.go:86–88 ·
view source on GitHub ↗
(command *cobra.Command)
Source
from the content-addressed store, hash-verified
84
}
85
86
func
isRootCmd(command *cobra.Command) bool {
87
return
command != nil && !command.HasParent()
88
}
89
90
func
rootHelpFunc(f *cmdutil.Factory, command *cobra.Command, _ []string) {
91
flags := command.Flags()
Callers
1
rootHelpFunc
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected