Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support-semver-version-constraint #251

Merged
merged 14 commits into from
Jan 23, 2023
Prev Previous commit
Next Next commit
feat: Add override VC key option to CLI
  • Loading branch information
in03 committed Jan 23, 2023
commit f26df51991296d291349ea65dbc525cdfefb3ffe
20 changes: 12 additions & 8 deletions src/proxima/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,21 @@
console = Console()
app_status = AppStatus("proxima")


def write_override_key(value: str):
globals.version_constraint_key = value


hide_banner = typer.Option(
default=False, help="Hide the title and build info on startup"
)

override_vc_key = typer.Option(
default="",
help="Override the version constraint key with a custom value",
callback=write_override_key,
)

# Special functions
@cli_app.callback(invoke_without_command=True)
def run_without_args(ctx: typer.Context):
Expand Down Expand Up @@ -51,14 +62,6 @@ def queue():
core.setup_rich_logging()
logger = logging.getLogger("proxima")
logger.setLevel(settings["app"]["loglevel"])
# End init

# print("\n")
# console.rule(
# f"[green bold]Queuing proxies from Resolve's active timeline[/] :outbox_tray:",
# align="left",
# )
# print("\n")

from proxima.cli import queue

Expand All @@ -68,6 +71,7 @@ def queue():
@cli_app.command()
def work(
hide_banner: bool = hide_banner,
vc: str = override_vc_key,
workers_to_launch: Optional[int] = typer.Argument(
0, help="How many workers to start"
),
Expand Down