aboutsummaryrefslogtreecommitdiff
path: root/cli/cmd/root.go
blob: 03579d82a80fe1d6c996b477a1c85b3da1f0df8d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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()
}