Make Application name configurable

This commit is contained in:
Thomas Peetz
2019-09-03 15:42:48 +02:00
parent b7cbe08d7b
commit 276e65b153
15 changed files with 359 additions and 12 deletions
+2
View File
@@ -67,6 +67,8 @@ var rootCmd = &cobra.Command{
func Execute(version string) {
rootCmd.Version = version
properties.SetVersion(version)
properties.SetApplication("Kalorienmanager")
properties.SetTemplatePrefix("kalorienmanager")
if err := rootCmd.Execute(); err != nil {
fmt.Println(err)
os.Exit(1)