add basic plugin architecture
This commit is contained in:
@@ -10,9 +10,12 @@ import (
|
||||
type GoCliPlugin struct {
|
||||
}
|
||||
|
||||
// About implements register.Plugin
|
||||
func (*GoCliPlugin) About() string {
|
||||
return "gocli"
|
||||
func (*GoCliPlugin) About(ctx context.Context) (*register.About, error) {
|
||||
return ®ister.About{
|
||||
Name: "gocli",
|
||||
Version: "v0.0.1",
|
||||
About: "golang cli provides a set of actions and presets supporting golang development",
|
||||
}, nil
|
||||
}
|
||||
|
||||
var _ register.Plugin = &GoCliPlugin{}
|
||||
|
Reference in New Issue
Block a user