diff options
Diffstat (limited to 'cmd/vartan/test.go')
-rw-r--r-- | cmd/vartan/test.go | 7 |
1 files changed, 4 insertions, 3 deletions
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 <grammar file path> <test file path>|<test directory path>", @@ -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) |