I believe that all functionality is implemented
This commit is contained in:
@@ -15,14 +15,16 @@ import (
|
||||
)
|
||||
|
||||
var (
|
||||
Version = "2.0"
|
||||
Version string
|
||||
Build string
|
||||
|
||||
configFile string
|
||||
|
||||
// rootCmd represents the base command when called without any subcommands
|
||||
rootCmd = &cobra.Command{
|
||||
Use: "gime",
|
||||
Short: "Timer.txt Client",
|
||||
Long: "Gime is a timer.txt client to make all aspects of timekeeping simpler.",
|
||||
Long: fmt.Sprintf("Gime is a timer.txt client to make all aspects of timekeeping simpler.\nVersion: %s\nBuild Date: %s\n", Version, Build),
|
||||
RunE: opStatus,
|
||||
}
|
||||
)
|
||||
@@ -46,6 +48,7 @@ func initConfig() {
|
||||
viper.SetDefault("timerfile", "timer.txt")
|
||||
viper.SetDefault("donefile", "done.txt")
|
||||
viper.SetDefault("reportfile", "report.txt")
|
||||
viper.SetDefault("copytags", false)
|
||||
var firstDir string // In case we need to make directories
|
||||
if configFile != "" {
|
||||
viper.SetConfigFile(configFile)
|
||||
|
||||
Reference in New Issue
Block a user