package z import ( "fmt" "github.com/spf13/cobra" "os" ) var database *Database var begin string var finish string var project string var task string var force bool var rootCmd = &cobra.Command{ Use: "zeit", Short: "Command line Zeiterfassung", Long: `A command line time tracker.`, } func Execute() { if err := rootCmd.Execute(); err != nil { fmt.Printf("△ %+v\n", err) os.Exit(-1) } } func init() { cobra.OnInitialize(initConfig) } func initConfig() { }