added publish and remove commands

This commit is contained in:
2026-01-18 21:26:23 +11:00
parent 6fb6f42366
commit ba466e7549
6 changed files with 148 additions and 33 deletions

View File

@@ -51,14 +51,20 @@ def install(args):
continue
response.raise_for_status()
break
# create temporary file for tarball
f = tempfile.TemporaryFile("wb+")
f.write(response.content)
f.flush()
f.seek(0)
console.print("[d][:white_check_mark:] Tarball downloaded![/]")
try:
f = tempfile.TemporaryFile("wb+")
f.write(response.content)
f.flush()
f.seek(0)
console.print("[d][:white_check_mark:] Tarball downloaded![/]")
except KeyboardInterrupt:
console.print("[b yellow]digpkg: operation cancelled by user[/]")
return
# extract the tarball to the GROUND_LIBS folder
status.update("Extracting...")