Skip to content

Commit

Permalink
Renaming for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Suderman committed Jan 19, 2020
1 parent b338a1b commit 6c8bb31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ func init() {
//Commands
rootCmd.AddCommand(demoCmd)
rootCmd.AddCommand(versionCmd)
rootCmd.AddCommand(on)
rootCmd.AddCommand(onCmd)

// Demo Flags
demoCmd.Flags().IntVar(&demoDelay, "speed", 200, "The delay in ms of the demo program.")
demoCmd.Flags().IntVar(&demoCount, "count", 2, "The number of loops to run the demo.")

// On Flags
on.Flags().StringVarP(&color, "color", "c", "white", "The color to turn the lights on to.")
onCmd.Flags().StringVarP(&color, "color", "c", "white", "The color to turn the lights on to.")

klog.InitFlags(nil)
flag.Parse()
Expand Down Expand Up @@ -84,7 +84,7 @@ var demoCmd = &cobra.Command{
},
}

var on = &cobra.Command{
var onCmd = &cobra.Command{
Use: "on",
Short: "Turn on the lights.",
Long: `Turns on the lights to a specific color.`,
Expand Down

0 comments on commit 6c8bb31

Please sign in to comment.