char/plugins/rust/main.go

31 lines
544 B
Go
Raw Normal View History

2022-11-01 21:15:32 +01:00
package main
import (
"context"
"log"
"git.front.kjuulh.io/kjuulh/char/pkg/register"
)
2022-11-02 16:31:12 +01:00
type GoCliPlugin struct{}
2022-11-01 21:15:32 +01:00
func (*GoCliPlugin) About(ctx context.Context) (*register.About, error) {
return &register.About{
Name: "rust",
Version: "v0.0.1",
2022-11-02 16:31:12 +01:00
About: "rust cli provides a set of actions and presets supporting rust development",
2022-11-01 21:15:32 +01:00
}, nil
}
var _ register.Plugin = &GoCliPlugin{}
func main() {
if err := register.
NewPluginBuilder(
&GoCliPlugin{},
).
Serve(context.Background()); err != nil {
log.Fatal(err)
}
}