diff options
Diffstat (limited to 'cli/cmd/root.go')
-rw-r--r-- | cli/cmd/root.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/cli/cmd/root.go b/cli/cmd/root.go new file mode 100644 index 0000000..03579d8 --- /dev/null +++ b/cli/cmd/root.go @@ -0,0 +1,17 @@ +package cmd + +import "github.com/spf13/cobra" + +var rootCmd = &cobra.Command{ + Use: "maleeni", + Short: "Generate a portable DFA from a lexical specification", + Long: `maleeni provides two features: +* Generates a portable DFA from a lexical specification. +* Tokenizes a text stream according to the lexical specification. + This feature is primarily aimed at debugging the lexical specification.`, + SilenceUsage: true, +} + +func Execute() error { + return rootCmd.Execute() +} |