Make Application name configurable
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user