sandflare-cli 2.0.24__tar.gz → 2.0.26__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.
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/PKG-INFO +1 -1
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/pyproject.toml +1 -1
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli/main.py +5 -5
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli.egg-info/PKG-INFO +1 -1
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/README.md +0 -0
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli/__init__.py +0 -0
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli.egg-info/SOURCES.txt +0 -0
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli.egg-info/dependency_links.txt +0 -0
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli.egg-info/entry_points.txt +0 -0
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/sandflare_cli.egg-info/top_level.txt +0 -0
- {sandflare_cli-2.0.24 → sandflare_cli-2.0.26}/setup.cfg +0 -0
|
@@ -430,7 +430,7 @@ def template_build(args):
|
|
|
430
430
|
if args.description:
|
|
431
431
|
fields["description"] = args.description
|
|
432
432
|
|
|
433
|
-
result = _multipart_post("/
|
|
433
|
+
result = _multipart_post("/templates/build", fields, context_files)
|
|
434
434
|
template_id = result.get("id") or result.get("template_id", "")
|
|
435
435
|
ok(f"Template build started: \033[1m{template_id}\033[0m")
|
|
436
436
|
info(f"Name : {args.name}")
|
|
@@ -442,7 +442,7 @@ def template_build(args):
|
|
|
442
442
|
deadline = _time.time() + 3600 # 60 min max
|
|
443
443
|
while _time.time() < deadline:
|
|
444
444
|
_time.sleep(5)
|
|
445
|
-
status_result = api("GET", f"/
|
|
445
|
+
status_result = api("GET", f"/templates/{template_id}/build-status")
|
|
446
446
|
status = status_result.get("status", "")
|
|
447
447
|
if status == "ready":
|
|
448
448
|
ok(f"Template \033[1m{template_id}\033[0m is ready!")
|
|
@@ -453,7 +453,7 @@ def template_build(args):
|
|
|
453
453
|
|
|
454
454
|
|
|
455
455
|
def template_list(_args):
|
|
456
|
-
result = api("GET", "/
|
|
456
|
+
result = api("GET", "/templates")
|
|
457
457
|
items = result if isinstance(result, list) else result.get("templates", [])
|
|
458
458
|
custom = [t for t in items if t.get("provider") == "custom"]
|
|
459
459
|
if not custom:
|
|
@@ -475,7 +475,7 @@ def template_list(_args):
|
|
|
475
475
|
|
|
476
476
|
|
|
477
477
|
def template_delete(args):
|
|
478
|
-
api("DELETE", f"/
|
|
478
|
+
api("DELETE", f"/templates/{args.id}")
|
|
479
479
|
ok(f"Template \033[1m{args.id}\033[0m deleted.")
|
|
480
480
|
|
|
481
481
|
|
|
@@ -574,7 +574,7 @@ def main():
|
|
|
574
574
|
|
|
575
575
|
args = parser.parse_args()
|
|
576
576
|
if not hasattr(args, "func"):
|
|
577
|
-
for subparser in [sandbox_parser,
|
|
577
|
+
for subparser in [sandbox_parser, keys_parser, config_parser, template_parser]:
|
|
578
578
|
if args.resource in (
|
|
579
579
|
getattr(subparser, "prog", "").split()[-1:] + list(subparser._option_string_actions.get("aliases", []))
|
|
580
580
|
):
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|