diff options
author | EuAndreh <eu@euandre.org> | 2024-12-10 11:10:30 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2024-12-10 11:10:30 -0300 |
commit | 29e1a644a888992dd8b1646565d8247597f18565 (patch) | |
tree | dd1de73ce09696149afc37f8b42322ea94b65ec2 /cmd/vartan/test.go | |
parent | Build and test existing code as is (diff) | |
download | cotia-29e1a644a888992dd8b1646565d8247597f18565.tar.gz cotia-29e1a644a888992dd8b1646565d8247597f18565.tar.xz |
cmd/: Simplify flag usage
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]) |