ionos-cloud / ionosctl

The IONOS Cloud CLI (ionosctl) gives the ability to manage IONOS Cloud infrastructure directly from Command Line.
Apache License 2.0
30 stars 6 forks source link

enhancement: image id completer descriptions #380

Closed avirtopeanu-ionos closed 1 year ago

avirtopeanu-ionos commented 1 year ago

Add completer descriptions for --image-id flag.

Completed images are now relevant (i.e. only HDD images from the same location as the selected datacenter are completed for volume create --image-id).

Completed images will also be ordered so that private (user-uploaded) images are shown first.

 % i volume create --datacenter-id 5b155c2a-a580-41fe-8fd3-6c0562889d04 --image-id  <TAB>
Completing completions
2c27b1a4-4d5d-11ee-a519-1ed9fe6a7252  --  LINUX HDD public [rocky:latest,rocky:9] (rocky-9.2-genericcloud-20230513) from fr/par
2eefbc0c-5f7c-11ed-9aa6-0e69f8b5a652  --  LINUX HDD public [ubuntu:20.04] (ubuntu-20.04-server-cloudimg-amd64-20220824) from fr/par
2f6abdf0-d9c6-11ed-b4c9-46b39ba06ae6  --  LINUX HDD public [alma:9,alma:latest] (almalinux-9-GenericCloud-20221118) from fr/par
349b40f3-5601-11ee-a9da-86dc62105b4b  --  WINDOWS2016 HDD public [windows:2019] (windows-2019-server-2023-09) from fr/par
3e88fa7c-64c6-11ed-a0d5-42ebffc1611d  --  LINUX HDD public [debian:11] (debian-11-genericcloud-amd64-20220911-1135) from fr/par
4a851b21-5600-11ee-a9da-86dc62105b4b  --  WINDOWS2016 HDD public [windows:2016] (windows-2016-server-2023-09) from fr/par
57df76ca-febd-11ed-86e8-2e7f0689c849  --  LINUX HDD public [ubuntu:latest,ubuntu:22.04] (ubuntu-22.04-server-cloudimg-amd64-20230518) from fr/par
5ec642d7-a6bb-11ed-9e9f-e60bb43016ef  --  LINUX HDD public [centos:7,centos:latest] (CentOS-7-GenericCloud-2211) from fr/par
sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

0.0% 0.0% Coverage
20.6% 20.6% Duplication