Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var RootCmd = &cobra.Command{ Use: "dinkur", Version: "0.1.0-preview", Short: "The Dinkur CLI", Long: license.Header + ` Track how you spend time on your entries with Dinkur. `, SilenceErrors: true, SilenceUsage: true, PersistentPreRunE: func(cmd *cobra.Command, args []string) error { return readConfig(cmd) }, Run: func(cmd *cobra.Command, args []string) { if flagLicenseWarranty { fmt.Println(license.Warranty) } else if flagLicenseConditions { fmt.Println(license.Conditions) } else { cmd.Help() } }, }
RootCmd represents the base command when called without any subcommands
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.