I believe that all functionality is implemented

This commit is contained in:
2022-01-21 08:40:44 -06:00
parent 54c91f0d3c
commit 45d13e7052
12 changed files with 333 additions and 72 deletions

View File

@@ -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)