From b249db1d4bc6683f7511b762467db3cb14b10704 Mon Sep 17 00:00:00 2001 From: Christopher Giroir Date: Tue, 10 Dec 2024 00:24:47 -0800 Subject: [PATCH] feat(cli): ability to set config CLI params via env vars --- sqlmesh/cli/main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sqlmesh/cli/main.py b/sqlmesh/cli/main.py index 20b4af062..d2e2611c6 100644 --- a/sqlmesh/cli/main.py +++ b/sqlmesh/cli/main.py @@ -40,16 +40,19 @@ def _sqlmesh_version() -> str: "--gateway", type=str, help="The name of the gateway.", + envvar="SQLMESH_GATEWAY", ) @click.option( "--ignore-warnings", is_flag=True, help="Ignore warnings.", + envvar="SQLMESH_IGNORE_WARNINGS", ) @click.option( "--debug", is_flag=True, help="Enable debug mode.", + envvar="SQLMESH_DEBUG", ) @click.option( "--log-to-stdout",