diff options
Diffstat (limited to 'cmd/vartan/test.go')
-rw-r--r-- | cmd/vartan/test.go | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/cmd/vartan/test.go b/cmd/vartan/test.go index 73949e0..25bd27f 100644 --- a/cmd/vartan/test.go +++ b/cmd/vartan/test.go @@ -8,18 +8,7 @@ import ( "tester" ) -/* -func init() { - cmd := &cobra.Command{ - Use: "test <grammar file path> <test file path>|<test directory path>", - Short: "Test a grammar", - Example: ` vartan test grammar.vartan test`, - Args: cobra.ExactArgs(2), - RunE: runTest, - } - rootCmd.AddCommand(cmd) -} -*/ + func runTest(args []string) error { gram, _, err := readGrammar(args[0]) |