mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Do not print empty info items
This commit is contained in:
parent
8da4b55987
commit
9693a0b8ff
|
@ -1559,15 +1559,18 @@ class LegendaryCLI:
|
||||||
else:
|
else:
|
||||||
print(f'- {item.name}: {item.value}')
|
print(f'- {item.name}: {item.value}')
|
||||||
|
|
||||||
print('\nGame Information:')
|
if info_items['game']:
|
||||||
for info_item in info_items['game']:
|
print('\nGame Information:')
|
||||||
print_info_item(info_item)
|
for info_item in info_items['game']:
|
||||||
print('\nInstallation information:')
|
print_info_item(info_item)
|
||||||
for info_item in info_items['install']:
|
if info_items['install']:
|
||||||
print_info_item(info_item)
|
print('\nInstallation information:')
|
||||||
print('\nManifest information:')
|
for info_item in info_items['install']:
|
||||||
for info_item in info_items['manifest']:
|
print_info_item(info_item)
|
||||||
print_info_item(info_item)
|
if info_items['manifest']:
|
||||||
|
print('\nManifest information:')
|
||||||
|
for info_item in info_items['manifest']:
|
||||||
|
print_info_item(info_item)
|
||||||
else:
|
else:
|
||||||
json_out = dict(game=dict(), install=dict(), manifest=dict())
|
json_out = dict(game=dict(), install=dict(), manifest=dict())
|
||||||
for info_item in info_items['game']:
|
for info_item in info_items['game']:
|
||||||
|
|
Loading…
Reference in a new issue