mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 17:55:27 +00:00
[cli] Add some whitespace to make console less cramped
This commit is contained in:
parent
cc5c7a90b8
commit
976b7cebf0
|
@ -2180,14 +2180,15 @@ class LegendaryCLI:
|
||||||
logger.info('Looking for CrossOver installs...')
|
logger.info('Looking for CrossOver installs...')
|
||||||
apps = mac_find_crossover_apps()
|
apps = mac_find_crossover_apps()
|
||||||
if len(apps) > 1:
|
if len(apps) > 1:
|
||||||
print('Found multiple CrossOver installs, please select one:')
|
print('\nFound multiple CrossOver installs, please select one:')
|
||||||
for i, (ver, path) in enumerate(apps, start=1):
|
for i, (ver, path) in enumerate(apps, start=1):
|
||||||
print(f'\t{i:2d}. {ver} ({path})')
|
print(f'\t{i:2d}. {ver} ({path})')
|
||||||
choice = get_int_choice(f'Select a CrossOver install', 1, 1, len(apps))
|
choice = get_int_choice(f'Select a CrossOver install', 1, 1, len(apps))
|
||||||
if choice is None:
|
if choice is None:
|
||||||
logger.error(f'No valid choice made, aborting.')
|
logger.error(f'No valid choice made, aborting.')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
# empty line just to make the output look a little less crammed
|
||||||
|
print('')
|
||||||
cx_version, args.crossover_app = apps[choice - 1]
|
cx_version, args.crossover_app = apps[choice - 1]
|
||||||
elif len(apps) == 1:
|
elif len(apps) == 1:
|
||||||
cx_version, args.crossover_app = apps[0]
|
cx_version, args.crossover_app = apps[0]
|
||||||
|
@ -2227,7 +2228,7 @@ class LegendaryCLI:
|
||||||
f'manual setup instructions.')
|
f'manual setup instructions.')
|
||||||
install_candidate = None
|
install_candidate = None
|
||||||
else:
|
else:
|
||||||
print('Found available bottle(s), please select one:')
|
print('\nFound available bottle(s), please select one:')
|
||||||
|
|
||||||
default_choice = None
|
default_choice = None
|
||||||
for i, bottle in enumerate(usable_bottles, start=1):
|
for i, bottle in enumerate(usable_bottles, start=1):
|
||||||
|
@ -2249,7 +2250,8 @@ class LegendaryCLI:
|
||||||
if choice is None:
|
if choice is None:
|
||||||
logger.error(f'No valid choice made, aborting.')
|
logger.error(f'No valid choice made, aborting.')
|
||||||
return
|
return
|
||||||
|
# empty line just to make the output look a little less crammed
|
||||||
|
print('')
|
||||||
install_candidate = usable_bottles[choice - 1]
|
install_candidate = usable_bottles[choice - 1]
|
||||||
|
|
||||||
if install_candidate:
|
if install_candidate:
|
||||||
|
@ -2293,7 +2295,7 @@ class LegendaryCLI:
|
||||||
forced_selection = bottle_name
|
forced_selection = bottle_name
|
||||||
|
|
||||||
if len(bottles) > 1 and not forced_selection:
|
if len(bottles) > 1 and not forced_selection:
|
||||||
print('Found multiple CrossOver bottles, please select one:')
|
print('\nFound multiple CrossOver bottles, please select one:')
|
||||||
|
|
||||||
if 'Legendary' in bottles:
|
if 'Legendary' in bottles:
|
||||||
default_choice = bottles.index('Legendary') + 1
|
default_choice = bottles.index('Legendary') + 1
|
||||||
|
@ -2314,7 +2316,8 @@ class LegendaryCLI:
|
||||||
if choice is None:
|
if choice is None:
|
||||||
logger.error(f'No valid choice made, aborting.')
|
logger.error(f'No valid choice made, aborting.')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
# empty line just to make the output look a little less crammed
|
||||||
|
print('')
|
||||||
args.crossover_bottle = bottles[choice - 1]
|
args.crossover_bottle = bottles[choice - 1]
|
||||||
elif len(bottles) == 1 and not forced_selection:
|
elif len(bottles) == 1 and not forced_selection:
|
||||||
logger.info(f'Found only one bottle: {bottles[0]}')
|
logger.info(f'Found only one bottle: {bottles[0]}')
|
||||||
|
|
Loading…
Reference in a new issue