MCPcopy
hub / github.com/nikivdev/go / registerCommand

Function registerCommand

cli/flow/main.go:477–481  ·  view source on GitHub ↗
(app *snap.App, name, description string, action snap.ActionFunc)

Source from the content-addressed store, hash-verified

475}
476
477func registerCommand(app *snap.App, name, description string, action snap.ActionFunc) {
478 commandCatalog = append(commandCatalog, commandInfo{name: name, description: description})
479 app.Command(name, description).
480 Action(action)
481}
482
483func selectCommandArgs() ([]string, int, error) {
484 if len(commandCatalog) == 0 {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected