with handling for do

This commit is contained in:
2022-11-05 23:05:41 +01:00
parent fd826827f6
commit 52f44f7c2e
8 changed files with 77 additions and 15 deletions

View File

@@ -9,6 +9,13 @@ import (
type GoCliPlugin struct{}
// Do implements register.Plugin
func (*GoCliPlugin) Do(ctx context.Context, commandName string, args map[string]string) error {
log.Print("hit do")
return nil
}
func (*GoCliPlugin) About(ctx context.Context) (*register.About, error) {
return &register.About{
Name: "gocli",