From 7e9f616639c29436ab66cc08c70028beded2877d Mon Sep 17 00:00:00 2001 From: Ryo Nihei Date: Sat, 8 May 2021 19:44:17 +0900 Subject: Change package structure The executable can be installed using `go install ./cmd/maleeni`. --- cli/cmd/root.go | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 cli/cmd/root.go (limited to 'cli/cmd/root.go') diff --git a/cli/cmd/root.go b/cli/cmd/root.go deleted file mode 100644 index 3c7109b..0000000 --- a/cli/cmd/root.go +++ /dev/null @@ -1,28 +0,0 @@ -package cmd - -import ( - "fmt" - "os" - - "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.`, - SilenceErrors: true, - SilenceUsage: true, -} - -func Execute() error { - err := rootCmd.Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "%v\n", err) - return err - } - return nil -} -- cgit v1.2.3