diff --git a/cmd/cuesonnet/main.go b/cmd/cuesonnet/main.go deleted file mode 100644 index 9f740d252ae58b771327748735258edabc22df11..0000000000000000000000000000000000000000 --- a/cmd/cuesonnet/main.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "bytes" - "fmt" - "log" - "os" - - "go.jolheiser.com/cuesonnet" -) - -func maine() error { - args := os.Args[1:] - if len(args) < 2 { - log.Fatalln("cuesonnet ") - } - - schema, err := os.ReadFile(args[0]) - if err != nil { - return fmt.Errorf("could not open schema: %w", err) - } - - data, err := os.ReadFile(args[1]) - if err != nil { - return fmt.Errorf("could not open data: %w", err) - } - - return cuesonnet.Schema(string(schema)).Decode(bytes.NewReader(data), &map[string]any{}) -} - -func main() { - if err := maine(); err != nil { - log.Println(err) - } -}