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.