Function
registerCommand
(app *snap.App, name, description string, action snap.ActionFunc)
Source from the content-addressed store, hash-verified
| 475 | } |
| 476 | |
| 477 | func 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 | |
| 483 | func selectCommandArgs() ([]string, int, error) { |
| 484 | if len(commandCatalog) == 0 { |
Tested by
no test coverage detected