From ab1ad9eecffed26c4aa3d6fd346d7b06e9eadbb1 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Mon, 2 Dec 2024 15:41:30 -0300 Subject: Build and test existing code as is --- cmd/vartan/parse.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'cmd/vartan/parse.go') diff --git a/cmd/vartan/parse.go b/cmd/vartan/parse.go index 8b3e34e..50d867e 100644 --- a/cmd/vartan/parse.go +++ b/cmd/vartan/parse.go @@ -7,10 +7,9 @@ import ( "os" "strings" - driver "github.com/nihei9/vartan/driver/parser" - spec "github.com/nihei9/vartan/spec/grammar" - "github.com/nihei9/vartan/tester" - "github.com/spf13/cobra" + driver "driver/parser" + spec "spec/grammar" + "tester" ) var parseFlags = struct { @@ -27,6 +26,7 @@ const ( outputFormatJSON = "json" ) +/* func init() { cmd := &cobra.Command{ Use: "parse ", @@ -42,8 +42,9 @@ func init() { parseFlags.format = cmd.Flags().StringP("format", "f", "text", "output format: one of text|tree|json") rootCmd.AddCommand(cmd) } +*/ -func runParse(cmd *cobra.Command, args []string) error { +func runParse(args []string) error { if *parseFlags.onlyParse && *parseFlags.cst { return fmt.Errorf("You cannot enable --only-parse and --cst at the same time") } -- cgit v1.2.3