MCPcopy Index your code
hub / github.com/perkeep/perkeep / RunCommand

Method RunCommand

cmd/pk/debug.go:74–84  ·  view source on GitHub ↗
(args []string)

Source from the content-addressed store, hash-verified

72}
73
74func (c *debugCmd) RunCommand(args []string) error {
75 if args == nil || len(args) != 2 {
76 return cmdmain.UsageError("Incorrect number of arguments.")
77 }
78 subMode, ok := debugSubModes[args[0]]
79 if !ok {
80 return cmdmain.UsageError(fmt.Sprintf("Invalid submode: %v", args[0]))
81 }
82 subMode.fun(args[1])
83 return nil
84}

Callers

nothing calls this directly

Calls 1

UsageErrorTypeAlias · 0.92

Tested by

no test coverage detected