Skip to content

Commit

Permalink
remove log level; uncessary overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
zramsay committed May 4, 2017
1 parent 6e9b5b7 commit 9659fb8
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@ import (
"github.com/spf13/cobra"
)

//global flag
var logLevel string
// global flags
var outputType string

var RootCmd = &cobra.Command{
Use: "claw",
Short: "Command Line Law",
PersistentPreRun: func(cmd *cobra.Command, args []string) {
// set the log level
},
}

Expand All @@ -32,9 +30,6 @@ var compileCmd = &cobra.Command{
}

func init() {
//parse flag and set config
RootCmd.PersistentFlags().StringVar(&logLevel, "log_level", "info", "Log level")

compileCmd.Flags().StringVar(&outputType, "output", "md", "Output type: md | html | pdf")

RootCmd.AddCommand(newCmd)
Expand Down

0 comments on commit 9659fb8

Please sign in to comment.