devices/cli: make device list way more readable, add package name and path, mark currently selected

This commit is contained in:
InsanePrawn 2023-01-02 02:45:26 +01:00
parent 5edfac42ce
commit 63156776a2
3 changed files with 49 additions and 6 deletions

View file

@ -135,7 +135,7 @@ def prompt_profile_device(current: Optional[str], profile_name: str) -> tuple[st
devices = get_devices()
print(click.style("Pick your device!\nThese are the available devices:", bold=True))
for dev in sorted(devices.keys()):
print(devices[dev])
print(f"{devices[dev]}\n")
return prompt_choice(current, f'profiles.{profile_name}.device', devices.keys())