devnomads-cli 0.17.7__tar.gz → 0.17.9__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/PKG-INFO +1 -1
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/devnomads_cli.egg-info/PKG-INFO +1 -1
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/dncli.py +247 -2
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/pyproject.toml +1 -1
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/LICENSE +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/README.md +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/devnomads_cli.egg-info/SOURCES.txt +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/devnomads_cli.egg-info/dependency_links.txt +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/devnomads_cli.egg-info/entry_points.txt +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/devnomads_cli.egg-info/requires.txt +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/devnomads_cli.egg-info/top_level.txt +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/setup.cfg +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_agent_features.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_cert.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_cli.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_config.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_generate.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_generated_cli.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_helpers.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_hook.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_sites_publish.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_sites_ssh.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_skill_install.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_ssh_keys.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_transfer.py +0 -0
- {devnomads_cli-0.17.7 → devnomads_cli-0.17.9}/tests/test_versions.py +0 -0
|
@@ -72,7 +72,7 @@ from rich.markup import escape
|
|
|
72
72
|
from rich.table import Table
|
|
73
73
|
from typer.core import TyperGroup
|
|
74
74
|
|
|
75
|
-
__version__ = "0.17.
|
|
75
|
+
__version__ = "0.17.9"
|
|
76
76
|
|
|
77
77
|
# Distribution names, for reporting versions via `dncli version`.
|
|
78
78
|
CLI_PACKAGE = "devnomads-cli"
|
|
@@ -4022,7 +4022,7 @@ def _wait_for_batch(
|
|
|
4022
4022
|
|
|
4023
4023
|
# --- BEGIN GENERATED COMMANDS (tools/generate.py; do not edit by hand) ---
|
|
4024
4024
|
|
|
4025
|
-
API_VERSION = "0.6.
|
|
4025
|
+
API_VERSION = "0.6.39"
|
|
4026
4026
|
SKILL_MD = """\
|
|
4027
4027
|
---
|
|
4028
4028
|
name: devnomads
|
|
@@ -4727,6 +4727,62 @@ COMMAND_META: dict[str, dict[str, Any]] = {
|
|
|
4727
4727
|
"background": False,
|
|
4728
4728
|
"billing": False,
|
|
4729
4729
|
},
|
|
4730
|
+
"projects delete": {
|
|
4731
|
+
"method": "DELETE",
|
|
4732
|
+
"path": "/projects/{projectId}",
|
|
4733
|
+
"changes": True,
|
|
4734
|
+
"confirm": True,
|
|
4735
|
+
"background": False,
|
|
4736
|
+
"billing": False,
|
|
4737
|
+
},
|
|
4738
|
+
"projects list": {
|
|
4739
|
+
"method": "GET",
|
|
4740
|
+
"path": "/projects",
|
|
4741
|
+
"changes": False,
|
|
4742
|
+
"confirm": False,
|
|
4743
|
+
"background": False,
|
|
4744
|
+
"billing": False,
|
|
4745
|
+
},
|
|
4746
|
+
"projects services delete": {
|
|
4747
|
+
"method": "DELETE",
|
|
4748
|
+
"path": "/projects/{projectId}/services/{serviceId}",
|
|
4749
|
+
"changes": True,
|
|
4750
|
+
"confirm": True,
|
|
4751
|
+
"background": False,
|
|
4752
|
+
"billing": False,
|
|
4753
|
+
},
|
|
4754
|
+
"projects services create": {
|
|
4755
|
+
"method": "POST",
|
|
4756
|
+
"path": "/projects/{projectId}/services",
|
|
4757
|
+
"changes": True,
|
|
4758
|
+
"confirm": False,
|
|
4759
|
+
"background": False,
|
|
4760
|
+
"billing": False,
|
|
4761
|
+
},
|
|
4762
|
+
"projects show": {
|
|
4763
|
+
"method": "GET",
|
|
4764
|
+
"path": "/projects/{projectId}",
|
|
4765
|
+
"changes": False,
|
|
4766
|
+
"confirm": False,
|
|
4767
|
+
"background": False,
|
|
4768
|
+
"billing": False,
|
|
4769
|
+
},
|
|
4770
|
+
"projects create": {
|
|
4771
|
+
"method": "POST",
|
|
4772
|
+
"path": "/projects",
|
|
4773
|
+
"changes": True,
|
|
4774
|
+
"confirm": False,
|
|
4775
|
+
"background": False,
|
|
4776
|
+
"billing": False,
|
|
4777
|
+
},
|
|
4778
|
+
"projects update": {
|
|
4779
|
+
"method": "PUT",
|
|
4780
|
+
"path": "/projects/{projectId}",
|
|
4781
|
+
"changes": True,
|
|
4782
|
+
"confirm": False,
|
|
4783
|
+
"background": False,
|
|
4784
|
+
"billing": False,
|
|
4785
|
+
},
|
|
4730
4786
|
"apps list": {
|
|
4731
4787
|
"method": "GET",
|
|
4732
4788
|
"path": "/services/apps",
|
|
@@ -6121,6 +6177,10 @@ gen_products = typer.Typer(
|
|
|
6121
6177
|
no_args_is_help=True,
|
|
6122
6178
|
)
|
|
6123
6179
|
app.add_typer(gen_products, name="products")
|
|
6180
|
+
gen_projects = typer.Typer(
|
|
6181
|
+
cls=PrefixGroup, help="Manage projects.", no_args_is_help=True
|
|
6182
|
+
)
|
|
6183
|
+
app.add_typer(gen_projects, name="projects")
|
|
6124
6184
|
gen_proxies = typer.Typer(
|
|
6125
6185
|
cls=PrefixGroup,
|
|
6126
6186
|
help="Load balancers that route domains to sites or containers.",
|
|
@@ -6243,6 +6303,10 @@ gen_nameserver_groups_nameservers = typer.Typer(
|
|
|
6243
6303
|
no_args_is_help=True,
|
|
6244
6304
|
)
|
|
6245
6305
|
gen_nameserver_groups.add_typer(gen_nameserver_groups_nameservers, name="nameservers")
|
|
6306
|
+
gen_projects_services = typer.Typer(
|
|
6307
|
+
cls=PrefixGroup, help="Manage projects services.", no_args_is_help=True
|
|
6308
|
+
)
|
|
6309
|
+
gen_projects.add_typer(gen_projects_services, name="services")
|
|
6246
6310
|
gen_proxies_certificates = typer.Typer(
|
|
6247
6311
|
cls=PrefixGroup,
|
|
6248
6312
|
help="The TLS certificates of a proxy's primary domain and aliases.",
|
|
@@ -7349,6 +7413,187 @@ def gen_products_show(
|
|
|
7349
7413
|
)
|
|
7350
7414
|
|
|
7351
7415
|
|
|
7416
|
+
@gen_projects.command("delete")
|
|
7417
|
+
def gen_projects_destroy(
|
|
7418
|
+
ctx: typer.Context,
|
|
7419
|
+
project_id: int = typer.Argument(..., metavar="PROJECT_ID"),
|
|
7420
|
+
yes: bool = _YES_OPT,
|
|
7421
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
7422
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7423
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7424
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7425
|
+
) -> None:
|
|
7426
|
+
"""Delete a project."""
|
|
7427
|
+
|
|
7428
|
+
_generated_call(
|
|
7429
|
+
ctx,
|
|
7430
|
+
"DELETE",
|
|
7431
|
+
"/projects/{projectId}",
|
|
7432
|
+
{"projectId": project_id},
|
|
7433
|
+
dry_run=dry_run,
|
|
7434
|
+
confirm="Delete projects",
|
|
7435
|
+
yes=yes,
|
|
7436
|
+
timeout=timeout,
|
|
7437
|
+
output=output,
|
|
7438
|
+
select=columns,
|
|
7439
|
+
)
|
|
7440
|
+
|
|
7441
|
+
|
|
7442
|
+
@gen_projects.command("list")
|
|
7443
|
+
def gen_projects_index(
|
|
7444
|
+
ctx: typer.Context,
|
|
7445
|
+
sort: str | None = _SORT_OPT,
|
|
7446
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7447
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7448
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7449
|
+
) -> None:
|
|
7450
|
+
"""Get projects."""
|
|
7451
|
+
|
|
7452
|
+
_generated_call(
|
|
7453
|
+
ctx,
|
|
7454
|
+
"GET",
|
|
7455
|
+
"/projects",
|
|
7456
|
+
{},
|
|
7457
|
+
sort=sort,
|
|
7458
|
+
timeout=timeout,
|
|
7459
|
+
output=output,
|
|
7460
|
+
select=columns,
|
|
7461
|
+
)
|
|
7462
|
+
|
|
7463
|
+
|
|
7464
|
+
@gen_projects_services.command("delete")
|
|
7465
|
+
def gen_projects_services_destroy(
|
|
7466
|
+
ctx: typer.Context,
|
|
7467
|
+
project_id: int = typer.Argument(..., metavar="PROJECT_ID"),
|
|
7468
|
+
service_id: int = typer.Argument(
|
|
7469
|
+
...,
|
|
7470
|
+
metavar="SERVICE_ID",
|
|
7471
|
+
help="Service id, or the service's unique entity name (usually its domain or name).",
|
|
7472
|
+
),
|
|
7473
|
+
yes: bool = _YES_OPT,
|
|
7474
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
7475
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7476
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7477
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7478
|
+
) -> None:
|
|
7479
|
+
"""Detach a service from a project."""
|
|
7480
|
+
|
|
7481
|
+
_generated_call(
|
|
7482
|
+
ctx,
|
|
7483
|
+
"DELETE",
|
|
7484
|
+
"/projects/{projectId}/services/{serviceId}",
|
|
7485
|
+
{"projectId": project_id, "serviceId": service_id},
|
|
7486
|
+
dry_run=dry_run,
|
|
7487
|
+
confirm="Delete projects services",
|
|
7488
|
+
yes=yes,
|
|
7489
|
+
timeout=timeout,
|
|
7490
|
+
output=output,
|
|
7491
|
+
select=columns,
|
|
7492
|
+
)
|
|
7493
|
+
|
|
7494
|
+
|
|
7495
|
+
@gen_projects_services.command("create")
|
|
7496
|
+
def gen_projects_services_store(
|
|
7497
|
+
ctx: typer.Context,
|
|
7498
|
+
project_id: int = typer.Argument(..., metavar="PROJECT_ID"),
|
|
7499
|
+
service_id: int = typer.Option(...),
|
|
7500
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
7501
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7502
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7503
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7504
|
+
) -> None:
|
|
7505
|
+
"""Attach a service to a project."""
|
|
7506
|
+
|
|
7507
|
+
_generated_call(
|
|
7508
|
+
ctx,
|
|
7509
|
+
"POST",
|
|
7510
|
+
"/projects/{projectId}/services",
|
|
7511
|
+
{"projectId": project_id},
|
|
7512
|
+
body={"service_id": service_id},
|
|
7513
|
+
dry_run=dry_run,
|
|
7514
|
+
timeout=timeout,
|
|
7515
|
+
output=output,
|
|
7516
|
+
select=columns,
|
|
7517
|
+
)
|
|
7518
|
+
|
|
7519
|
+
|
|
7520
|
+
@gen_projects.command("show")
|
|
7521
|
+
def gen_projects_show(
|
|
7522
|
+
ctx: typer.Context,
|
|
7523
|
+
project_id: int = typer.Argument(..., metavar="PROJECT_ID"),
|
|
7524
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7525
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7526
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7527
|
+
) -> None:
|
|
7528
|
+
"""Show a project."""
|
|
7529
|
+
|
|
7530
|
+
_generated_call(
|
|
7531
|
+
ctx,
|
|
7532
|
+
"GET",
|
|
7533
|
+
"/projects/{projectId}",
|
|
7534
|
+
{"projectId": project_id},
|
|
7535
|
+
timeout=timeout,
|
|
7536
|
+
output=output,
|
|
7537
|
+
select=columns,
|
|
7538
|
+
)
|
|
7539
|
+
|
|
7540
|
+
|
|
7541
|
+
@gen_projects.command("create")
|
|
7542
|
+
def gen_projects_store(
|
|
7543
|
+
ctx: typer.Context,
|
|
7544
|
+
client_id: str = typer.Option(
|
|
7545
|
+
...,
|
|
7546
|
+
help="Client to bill, the `id` from `dncli clients list`. The client's unique `name` works too.",
|
|
7547
|
+
),
|
|
7548
|
+
name: str = typer.Option(...),
|
|
7549
|
+
description: str | None = typer.Option(None, help="Free-text description."),
|
|
7550
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
7551
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7552
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7553
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7554
|
+
) -> None:
|
|
7555
|
+
"""Create a project."""
|
|
7556
|
+
|
|
7557
|
+
_generated_call(
|
|
7558
|
+
ctx,
|
|
7559
|
+
"POST",
|
|
7560
|
+
"/projects",
|
|
7561
|
+
{},
|
|
7562
|
+
body={"client_id": client_id, "name": name, "description": description},
|
|
7563
|
+
lookups={"client_id": "client_id"},
|
|
7564
|
+
dry_run=dry_run,
|
|
7565
|
+
timeout=timeout,
|
|
7566
|
+
output=output,
|
|
7567
|
+
select=columns,
|
|
7568
|
+
)
|
|
7569
|
+
|
|
7570
|
+
|
|
7571
|
+
@gen_projects.command("update")
|
|
7572
|
+
def gen_projects_update(
|
|
7573
|
+
ctx: typer.Context,
|
|
7574
|
+
project_id: int = typer.Argument(..., metavar="PROJECT_ID"),
|
|
7575
|
+
name: str | None = typer.Option(None),
|
|
7576
|
+
description: str | None = typer.Option(None, help="Free-text description."),
|
|
7577
|
+
dry_run: bool = _DRY_RUN_OPT,
|
|
7578
|
+
timeout: int = _TIMEOUT_OPT,
|
|
7579
|
+
output: OutputFormat | None = _OUTPUT_OPT,
|
|
7580
|
+
columns: str | None = _COLUMNS_OPT,
|
|
7581
|
+
) -> None:
|
|
7582
|
+
"""Update a project."""
|
|
7583
|
+
|
|
7584
|
+
_generated_call(
|
|
7585
|
+
ctx,
|
|
7586
|
+
"PUT",
|
|
7587
|
+
"/projects/{projectId}",
|
|
7588
|
+
{"projectId": project_id},
|
|
7589
|
+
body={"name": name, "description": description},
|
|
7590
|
+
dry_run=dry_run,
|
|
7591
|
+
timeout=timeout,
|
|
7592
|
+
output=output,
|
|
7593
|
+
select=columns,
|
|
7594
|
+
)
|
|
7595
|
+
|
|
7596
|
+
|
|
7352
7597
|
@gen_apps.command("list")
|
|
7353
7598
|
def gen_services_apps_index(
|
|
7354
7599
|
ctx: typer.Context,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|