From e51d10b267077621886f74422f06158192bf774d Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 5 Nov 2022 23:20:59 +0100 Subject: [PATCH] WIP --- plugins/gocli/main.go | 3 ++- plugins/rust/main.go | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/gocli/main.go b/plugins/gocli/main.go index 293b799..702ab59 100644 --- a/plugins/gocli/main.go +++ b/plugins/gocli/main.go @@ -11,7 +11,8 @@ type GoCliPlugin struct{} // Do implements register.Plugin func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error { - panic("unimplemented") + log.Printf("received command: %s", cmd.CommandName) + return nil } func (*GoCliPlugin) About(ctx context.Context) (*register.About, error) { diff --git a/plugins/rust/main.go b/plugins/rust/main.go index 224cdc8..84b4dbc 100644 --- a/plugins/rust/main.go +++ b/plugins/rust/main.go @@ -11,7 +11,8 @@ type GoCliPlugin struct{} // Do implements register.Plugin func (*GoCliPlugin) Do(ctx context.Context, cmd *register.DoCommand) error { - panic("unimplemented") + log.Printf("received command: %s", cmd.CommandName) + return nil } func (*GoCliPlugin) About(ctx context.Context) (*register.About, error) {