Add schema

This commit is contained in:
2022-11-02 16:31:12 +01:00
parent dd225fc130
commit a5859107f1
10 changed files with 158 additions and 10 deletions

View File

@@ -4,6 +4,7 @@ import (
"fmt"
"git.front.kjuulh.io/kjuulh/char/pkg/register"
"git.front.kjuulh.io/kjuulh/char/pkg/schema"
"github.com/spf13/cobra"
)
@@ -13,6 +14,11 @@ func NewLsCommand() *cobra.Command {
RunE: func(cmd *cobra.Command, args []string) error {
ctx := cmd.Context()
_, err := schema.ParseFile(ctx, ".char.yml")
if err != nil {
return err
}
r, err := register.
NewPluginRegisterBuilder().
Add("gocli", "plugins/gocli/main.go").
@@ -32,7 +38,6 @@ func NewLsCommand() *cobra.Command {
fmt.Printf("plugin: %s\n", a.Name)
fmt.Printf("\tversion: %s\n", a.Version)
fmt.Printf("\tabout: %s\n", a.About)
fmt.Println()
}
return nil