Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ctf/check.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,17 @@ def check(
bool,
typer.Option(
"--production",
envvar="CTF_PRODUCTION",
help="Do a production deployment. Only use this if you know what you're doing.",
),
] = False,
remote: Annotated[
str, typer.Option("--remote", help="Incus remote to deploy to")
str,
typer.Option(
"--remote",
envvar="CTF_REMOTE",
help="Incus remote to deploy to",
),
] = "local",
) -> None:
ENV["INCUS_REMOTE"] = remote
Expand Down
20 changes: 17 additions & 3 deletions ctf/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,33 @@ def deploy(
bool,
typer.Option(
"--production",
envvar="CTF_PRODUCTION",
help="Do a production deployment. Only use this if you know what you're doing.",
),
] = False,
remote: Annotated[
str, typer.Option("--remote", help="Incus remote to deploy to")
str,
typer.Option(
"--remote",
envvar="CTF_REMOTE",
help="Incus remote to deploy to",
),
] = "local",
vm_remote: Annotated[
str | None,
typer.Option("--vm-remote", help="Incus remote for VM to be deployed to"),
typer.Option(
"--vm-remote",
envvar="CTF_VM_REMOTE",
help="Incus remote for VM to be deployed to",
),
] = None,
vm_project: Annotated[
str | None,
typer.Option("--vm-project", help="Incus project for VM to be deployed to"),
typer.Option(
"--vm-project",
envvar="CTF_VM_PROJECT",
help="Incus project for VM to be deployed to",
),
] = None,
redeploy: Annotated[
bool, typer.Option("--redeploy", help="Do not use. Use `ctf redeploy` instead.")
Expand Down
8 changes: 7 additions & 1 deletion ctf/destroy.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,17 @@ def destroy(
bool,
typer.Option(
"--production",
envvar="CTF_PRODUCTION",
help="Do a production deployment. Only use this if you know what you're doing.",
),
] = False,
remote: Annotated[
str, typer.Option("--remote", help="Incus remote to deploy to")
str,
typer.Option(
"--remote",
envvar="CTF_REMOTE",
help="Incus remote to deploy to",
),
] = "local",
force: Annotated[
bool,
Expand Down
20 changes: 17 additions & 3 deletions ctf/generate.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,19 +38,33 @@ def generate(
bool,
typer.Option(
"--production",
envvar="CTF_PRODUCTION",
help="Do a production deployment. Only use this if you know what you're doing.",
),
] = False,
remote: Annotated[
str, typer.Option("--remote", help="Incus remote to deploy to")
str,
typer.Option(
"--remote",
envvar="CTF_REMOTE",
help="Incus remote to deploy to",
),
] = "local",
vm_remote: Annotated[
str | None,
typer.Option("--vm-remote", help="Incus remote for VM to be deployed to"),
typer.Option(
"--vm-remote",
envvar="CTF_VM_REMOTE",
help="Incus remote for VM to be deployed to",
),
] = None,
vm_project: Annotated[
str | None,
typer.Option("--vm-project", help="Incus project for VM to be deployed to"),
typer.Option(
"--vm-project",
envvar="CTF_VM_PROJECT",
help="Incus project for VM to be deployed to",
),
] = None,
redeploy: Annotated[
bool, typer.Option("--redeploy", help="Do not use. Use `ctf redeploy` instead.")
Expand Down
20 changes: 17 additions & 3 deletions ctf/redeploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,33 @@ def redeploy(
bool,
typer.Option(
"--production",
envvar="CTF_PRODUCTION",
help="Do a production deployment. Only use this if you know what you're doing.",
),
] = False,
remote: Annotated[
str, typer.Option("--remote", help="Incus remote to deploy to")
str,
typer.Option(
"--remote",
envvar="CTF_REMOTE",
help="Incus remote to deploy to",
),
] = "local",
vm_remote: Annotated[
str | None,
typer.Option("--vm-remote", help="Incus remote for VM to be deployed to"),
typer.Option(
"--vm-remote",
envvar="CTF_VM_REMOTE",
help="Incus remote for VM to be deployed to",
),
] = None,
vm_project: Annotated[
str | None,
typer.Option("--vm-project", help="Incus project for VM to be deployed to"),
typer.Option(
"--vm-project",
envvar="CTF_VM_PROJECT",
help="Incus project for VM to be deployed to",
),
] = None,
force: Annotated[
bool,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies = [
"typer==0.24.1",
"pydantic",
]
version = "4.6.0"
version = "4.6.1"
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: OS Independent",
Expand Down
Loading