From a8fc80facdca8880e8a95433f4c6c51a3bcc5219 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Fern=C3=A1ndez?= <7312236+fernandezcuesta@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:42:40 +0200 Subject: [PATCH] fix: standardize env vars MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --- main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.go b/main.go index cb9204f..b7896cb 100644 --- a/main.go +++ b/main.go @@ -9,13 +9,13 @@ import ( // CLI of this Function. type CLI struct { - Debug bool `help:"Emit debug logs in addition to info logs." short:"d"` + Debug bool `env:"DEBUG" help:"Emit debug logs in addition to info logs." short:"d"` - Network string `default:"tcp" help:"Network on which to listen for gRPC connections."` - Address string `default:":9443" help:"Address at which to listen for gRPC connections."` - TLSCertsDir string `env:"TLS_SERVER_CERTS_DIR" help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)"` - Insecure bool `help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."` - MaxRecvMessageSize int `default:"4" help:"Maximum size of received messages in MB."` + Network string `default:"tcp" env:"NETWORK" help:"Network on which to listen for gRPC connections."` + Address string `default:":9443" env:"ADDRESS" help:"Address at which to listen for gRPC connections."` + TLSCertsDir string `env:"TLS_SERVER_CERTS_DIR" help:"Directory containing server certs (tls.key, tls.crt) and the CA used to verify client certificates (ca.crt)"` + Insecure bool `env:"INSECURE" help:"Run without mTLS credentials. If you supply this flag --tls-server-certs-dir will be ignored."` + MaxRecvMessageSize int `default:"4" env:"MAX_RECV_MESSAGE_SIZE" help:"Maximum size of received messages in MB"` } // Run this Function.