fix(cmd): use pointer instead a copied object of the configFile environment

This commit is contained in:
2019-08-19 12:24:08 +02:00
parent 0e1ca7a8e1
commit c0aa155f36
29 changed files with 57 additions and 58 deletions

View File

@ -21,7 +21,7 @@ var listTemperatureCmd = &cobra.Command{
Run: func(cmd *cobra.Command, args []string) {
// read configuration
cnf, err := config.Read(configFile)
cnf, err := config.Read(*configFile)
if err != nil {
log.Fatalln(err)
}