mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 18:08:22 -04:00
packages: cmd_list_{devices,flavours}(): error on empty results
This commit is contained in:
parent
34ffbfb0bf
commit
c0b3b15260
2 changed files with 5 additions and 1 deletions
|
@ -158,7 +158,9 @@ def get_profile_device(profile_name: Optional[str] = None, hint_or_set_arch: boo
|
|||
|
||||
@click.command(name='list')
|
||||
def cmd_devices_list():
|
||||
'list the available flavours and descriptions'
|
||||
'list the available devices and descriptions'
|
||||
devices = get_devices()
|
||||
if not devices:
|
||||
raise Exception("No devices found!")
|
||||
for d in sorted(devices.keys()):
|
||||
print(devices[d])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue