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/test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'cmd/vartan/test.go') diff --git a/cmd/vartan/test.go b/cmd/vartan/test.go index 9bd88ff..73949e0 100644 --- a/cmd/vartan/test.go +++ b/cmd/vartan/test.go @@ -5,10 +5,10 @@ import ( "fmt" "os" - "github.com/nihei9/vartan/tester" - "github.com/spf13/cobra" + "tester" ) +/* func init() { cmd := &cobra.Command{ Use: "test |", @@ -19,8 +19,9 @@ func init() { } rootCmd.AddCommand(cmd) } +*/ -func runTest(cmd *cobra.Command, args []string) error { +func runTest(args []string) error { gram, _, err := readGrammar(args[0]) if err != nil { return fmt.Errorf("Cannot read a grammar: %w", err) -- cgit v1.2.3