MCPcopy Create free account
hub / github.com/PerpetualSoftware/pad / commandPath

Function commandPath

internal/cmdhelp/json.go:145–150  ·  view source on GitHub ↗
(cmd, root *cobra.Command)

Source from the content-addressed store, hash-verified

143}
144
145func commandPath(cmd, root *cobra.Command) string {
146 full := cmd.CommandPath()
147 rootPath := root.CommandPath()
148 trimmed := strings.TrimPrefix(full, rootPath)
149 return strings.TrimSpace(trimmed)
150}
151
152func buildCommand(cmd *cobra.Command) Command {
153 out := Command{

Callers 1

walkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected