From ef4e9f70503839bf2fb55d7c4c191bc6a218f2d0 Mon Sep 17 00:00:00 2001 From: Victor Lacasse-Beaudoin Date: Thu, 25 May 2023 04:44:06 -0400 Subject: [PATCH] Set sensible flags pour server --- v4/cmd/server.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/v4/cmd/server.go b/v4/cmd/server.go index 28ba0c4..411eb13 100644 --- a/v4/cmd/server.go +++ b/v4/cmd/server.go @@ -94,11 +94,11 @@ func init() { viper.BindPFlag("db.database", serverCmd.Flags().Lookup("db-database")) // db.host - serverCmd.Flags().String("db-host", "", "Postgres host (config:'db.host')") + serverCmd.Flags().String("db-host", "postgres", "Postgres host (config:'db.host')") viper.BindPFlag("db.host", serverCmd.Flags().Lookup("db-host")) // db.password - serverCmd.Flags().String("db-password", "", "Postgres password (config:'db.password')") + serverCmd.Flags().String("db-password", "bottin", "Postgres password (config:'db.password')") viper.BindPFlag("db.password", serverCmd.Flags().Lookup("db-password")) // db.port @@ -106,6 +106,6 @@ func init() { viper.BindPFlag("db.port", serverCmd.Flags().Lookup("db-port")) // db.user - serverCmd.Flags().String("db-user", "", "Postgres user (config:'db.user')") + serverCmd.Flags().String("db-user", "bottin", "Postgres user (config:'db.user')") viper.BindPFlag("db.user", serverCmd.Flags().Lookup("db-user")) }