request-vm-on-golem 0.1.37__py3-none-any.whl → 0.1.38__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: request-vm-on-golem
3
- Version: 0.1.37
3
+ Version: 0.1.38
4
4
  Summary: VM on Golem Requestor CLI - Create and manage virtual machines on the Golem Network
5
5
  Keywords: golem,vm,cloud,decentralized,cli
6
6
  Author: Phillip Jensen
@@ -1,7 +1,7 @@
1
1
  requestor/__init__.py,sha256=OqSUAh1uZBMx7GW0MoSMg967PVdmT8XdPJx3QYjwkak,116
2
2
  requestor/api/main.py,sha256=7utCzFNbh5Ol-vsBWeSwT4lXeHD7zdA-GFZuS3rHMWc,2180
3
3
  requestor/cli/__init__.py,sha256=e3E4oEGxmGj-STPtFkQwg_qIWhR0JAiAQdw3G1hXciU,37
4
- requestor/cli/commands.py,sha256=f1XyNNVOYu9h9lQC96I-hMQoCU79Lwu_ropUWbQ2qzY,26129
4
+ requestor/cli/commands.py,sha256=1ETYhZJWOjzZXtHx4CAMvURX_icO5u-MCZ4e7iMkJag,26484
5
5
  requestor/config.py,sha256=O39E-Wa-ewqdC9XP5nvj3zkOs52mevvFMyQGtHaqANk,4668
6
6
  requestor/db/__init__.py,sha256=Gm5DfWls6uvCZZ3HGGnyRHswbUQdeA5OGN8yPwH0hc8,88
7
7
  requestor/db/sqlite.py,sha256=l5pWbx2qlHuar1N_a0B9tVnmumLJY1w5rp3yZ7jmsC0,4146
@@ -18,7 +18,7 @@ requestor/ssh/__init__.py,sha256=hNgSqJ5s1_AwwxVRyFjUqh_LTBpI4Hmzq0F-f_wXN9g,119
18
18
  requestor/ssh/manager.py,sha256=XhZjz7_BRPnmpu-zxqnGHLCq0b2JZ8Xr8zc1OlMNDkc,9355
19
19
  requestor/utils/logging.py,sha256=oFNpO8pJboYM8Wp7g3HOU4HFyBTKypVdY15lUiz1a4I,3721
20
20
  requestor/utils/spinner.py,sha256=PUHJdTD9jpUHur__01_qxXy87WFfNmjQbD_sLG-KlGo,2459
21
- request_vm_on_golem-0.1.37.dist-info/METADATA,sha256=5MM3qjnmwNTUgCsTou03TbGAR5eKOuRZ4ZMefPHicO0,9950
22
- request_vm_on_golem-0.1.37.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
- request_vm_on_golem-0.1.37.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
24
- request_vm_on_golem-0.1.37.dist-info/RECORD,,
21
+ request_vm_on_golem-0.1.38.dist-info/METADATA,sha256=atnrLF9Phe9qcOvZ0S8MJyLAdULykpPKgK_KUls-gew,9950
22
+ request_vm_on_golem-0.1.38.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
23
+ request_vm_on_golem-0.1.38.dist-info/entry_points.txt,sha256=Z-skRNpJ8aZcIl_En9mEm1ygkp9FKy0bzQoL3zO52-0,44
24
+ request_vm_on_golem-0.1.38.dist-info/RECORD,,
requestor/cli/commands.py CHANGED
@@ -239,7 +239,7 @@ async def create_vm(name: str, provider_id: str, cpu: int, memory: int, storage:
239
239
  @click.argument('name')
240
240
  @async_command
241
241
  async def ssh_vm(name: str):
242
- """SSH into a VM."""
242
+ """SSH into a VM (alias: connect)."""
243
243
  try:
244
244
  logger.command(f"🔌 Connecting to VM '{name}'")
245
245
 
@@ -284,6 +284,13 @@ async def ssh_vm(name: str):
284
284
  raise click.Abort()
285
285
 
286
286
 
287
+ @vm.command(name="connect")
288
+ @click.argument("name")
289
+ def connect_vm(name: str):
290
+ """Connect to a VM via SSH (alias of ssh)."""
291
+ return ssh_vm.callback(name)
292
+
293
+
287
294
  @vm.command(name='info')
288
295
  @click.argument('name')
289
296
  @click.option('--json', 'as_json', is_flag=True, help='Output in JSON format')
@@ -338,7 +345,7 @@ async def info_vm(name: str, as_json: bool):
338
345
  @click.argument('name')
339
346
  @async_command
340
347
  async def destroy_vm(name: str):
341
- """Destroy a VM."""
348
+ """Destroy a VM (alias: delete)."""
342
349
  try:
343
350
  logger.command(f"💥 Destroying VM '{name}'")
344
351
 
@@ -377,6 +384,13 @@ async def destroy_vm(name: str):
377
384
  raise click.Abort()
378
385
 
379
386
 
387
+ @vm.command(name="delete")
388
+ @click.argument("name")
389
+ def delete_vm(name: str):
390
+ """Delete a VM (alias of destroy)."""
391
+ return destroy_vm.callback(name)
392
+
393
+
380
394
  @vm.command(name='purge')
381
395
  @click.option('--force', is_flag=True, help='Force purge even if other errors occur')
382
396
  @click.confirmation_option(prompt='Are you sure you want to purge all VMs?')