ignore some viper errors

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
This commit is contained in:
Jörn Friedrich Dreyer
2025-12-15 16:40:27 +01:00
committed by Florian Schade
parent 61707ab6d0
commit 3a2a38870c
2 changed files with 14 additions and 44 deletions
+4 -4
View File
@@ -36,12 +36,12 @@ func ListCommand(cfg *config.Config) *cobra.Command {
},
}
listCmd.Flags().String("hostname", "localhost", "hostname of the runtime")
viper.BindEnv("hostname", "OC_RUNTIME_HOST")
viper.BindPFlag("hostname", listCmd.Flags().Lookup("hostname"))
_ = viper.BindEnv("hostname", "OC_RUNTIME_HOST")
_ = viper.BindPFlag("hostname", listCmd.Flags().Lookup("hostname"))
listCmd.Flags().String("port", "9250", "port of the runtime")
viper.BindEnv("port", "OC_RUNTIME_PORT")
viper.BindPFlag("port", listCmd.Flags().Lookup("port"))
_ = viper.BindEnv("port", "OC_RUNTIME_PORT")
_ = viper.BindPFlag("port", listCmd.Flags().Lookup("port"))
return listCmd
}