Add clear command and get rid of the development flag

This commit is contained in:
khlieng 2015-05-02 01:02:21 +02:00
parent d1a82a65b5
commit 79095154ca
4 changed files with 40 additions and 20 deletions

15
commands/clear.go Normal file
View file

@ -0,0 +1,15 @@
package commands
import (
"github.com/khlieng/name_pending/Godeps/_workspace/src/github.com/spf13/cobra"
"github.com/khlieng/name_pending/storage"
)
var clearCmd = &cobra.Command{
Use: "clear",
Short: "Clear all application data",
Run: func(cmd *cobra.Command, args []string) {
storage.Clear()
},
}