Skip to content

Commit

Permalink
change env vars used for the infrahubctl command to align with SDK
Browse files Browse the repository at this point in the history
INFRAHUBCTL_TIMEOUT > INFRAHUB_TIMEOUT
INFRAHUBCTL_CONCURRENT_EXECUTION > INFRAHUBCTL_MAX_CONCURRENT_EXECUTION
  • Loading branch information
wvandeun committed Jan 17, 2025
1 parent 5f73796 commit eebc246
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelog/+align-infrahubctl-env-vars.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Aligned the environment variables used by the `infrahubctl` with the environment variables used by the SDK
4 changes: 2 additions & 2 deletions infrahub_sdk/ctl/cli_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ async def run(
concurrent: int = typer.Option(
4,
help="Maximum number of requests to execute at the same time.",
envvar="INFRAHUBCTL_CONCURRENT_EXECUTION",
envvar="INFRAHUB_MAX_CONCURRENT_EXECUTION",
),
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUBCTL_TIMEOUT"),
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUB_TIMEOUT"),
variables: list[str] | None = typer.Argument(
None, help="Variables to pass along with the query. Format key=value key=value."
),
Expand Down
4 changes: 2 additions & 2 deletions infrahub_sdk/ctl/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def dump(
concurrent: int = typer.Option(
4,
help="Maximum number of requests to execute at the same time.",
envvar="INFRAHUBCTL_CONCURRENT_EXECUTION",
envvar="INFRAHUB_MAX_CONCURRENT_EXECUTION",
),
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUBCTL_TIMEOUT"),
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUB_TIMEOUT"),
exclude: list[str] = typer.Option(
["CoreAccount"],
help="Prevent node kind(s) from being exported, CoreAccount is excluded by default",
Expand Down
4 changes: 2 additions & 2 deletions infrahub_sdk/ctl/importer.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ def load(
concurrent: int = typer.Option(
4,
help="Maximum number of requests to execute at the same time.",
envvar="INFRAHUBCTL_CONCURRENT_EXECUTION",
envvar="INFRAHUB_MAX_CONCURRENT_EXECUTION",
),
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUBCTL_TIMEOUT"),
timeout: int = typer.Option(60, help="Timeout in sec", envvar="INFRAHUB_TIMEOUT"),
) -> None:
"""Import nodes and their relationships into the database."""
console = Console()
Expand Down

0 comments on commit eebc246

Please sign in to comment.