mirror of
https://github.com/derrod/legendary.git
synced 2024-12-22 01:45:28 +00:00
[cli] Fix some formatting
This commit is contained in:
parent
e60c3f7aa7
commit
599e4766b2
|
@ -320,7 +320,7 @@ class LegendaryCLI:
|
||||||
self.core.install_game(game)
|
self.core.install_game(game)
|
||||||
|
|
||||||
print(f' * {game.title} (App name: {game.app_name} | Version: {game.version} | '
|
print(f' * {game.title} (App name: {game.app_name} | Version: {game.version} | '
|
||||||
f'Platform: {game.platform} | {game.install_size / (1024*1024*1024):.02f} GiB)')
|
f'Platform: {game.platform} | {game.install_size / (1024 * 1024 * 1024):.02f} GiB)')
|
||||||
if args.include_dir:
|
if args.include_dir:
|
||||||
print(f' + Location: {game.install_path}')
|
print(f' + Location: {game.install_path}')
|
||||||
if not os.path.exists(game.install_path):
|
if not os.path.exists(game.install_path):
|
||||||
|
@ -329,7 +329,7 @@ class LegendaryCLI:
|
||||||
print(f' -> Update available! Installed: {game.version}, Latest: {versions[game.app_name]}')
|
print(f' -> Update available! Installed: {game.version}, Latest: {versions[game.app_name]}')
|
||||||
for dlc in installed_dlcs[game.app_name]:
|
for dlc in installed_dlcs[game.app_name]:
|
||||||
print(f' + {dlc.title} (App name: {dlc.app_name} | Version: {dlc.version}) | '
|
print(f' + {dlc.title} (App name: {dlc.app_name} | Version: {dlc.version}) | '
|
||||||
f'{dlc.install_size / (1024*1024*1024):.02f} GiB)')
|
f'{dlc.install_size / (1024 * 1024 * 1024):.02f} GiB)')
|
||||||
if dlc.app_name in versions and versions[dlc.app_name] != dlc.version:
|
if dlc.app_name in versions and versions[dlc.app_name] != dlc.version:
|
||||||
print(f' -> Update available! Installed: {dlc.version}, Latest: {versions[dlc.app_name]}')
|
print(f' -> Update available! Installed: {dlc.version}, Latest: {versions[dlc.app_name]}')
|
||||||
|
|
||||||
|
@ -1426,7 +1426,7 @@ class LegendaryCLI:
|
||||||
game_infos.append(InfoItem('Title', 'title', game.app_title, game.app_title))
|
game_infos.append(InfoItem('Title', 'title', game.app_title, game.app_title))
|
||||||
game_infos.append(InfoItem('Latest version', 'version', game.app_version(args.platform),
|
game_infos.append(InfoItem('Latest version', 'version', game.app_version(args.platform),
|
||||||
game.app_version(args.platform)))
|
game.app_version(args.platform)))
|
||||||
all_versions = {k: v.build_version for k,v in game.asset_infos.items()}
|
all_versions = {k: v.build_version for k, v in game.asset_infos.items()}
|
||||||
game_infos.append(InfoItem('All versions', 'platform_versions', all_versions, all_versions))
|
game_infos.append(InfoItem('All versions', 'platform_versions', all_versions, all_versions))
|
||||||
# Cloud save support for Mac and Windows
|
# Cloud save support for Mac and Windows
|
||||||
game_infos.append(InfoItem('Cloud saves supported', 'cloud_saves_supported',
|
game_infos.append(InfoItem('Cloud saves supported', 'cloud_saves_supported',
|
||||||
|
@ -1765,7 +1765,7 @@ class LegendaryCLI:
|
||||||
self.core.lgd.clean_tmp_data()
|
self.core.lgd.clean_tmp_data()
|
||||||
|
|
||||||
after = self.core.lgd.get_dir_size()
|
after = self.core.lgd.get_dir_size()
|
||||||
logger.info(f'Cleanup complete! Removed {(before - after)/1024/1024:.02f} MiB.')
|
logger.info(f'Cleanup complete! Removed {(before - after) / 1024 / 1024:.02f} MiB.')
|
||||||
|
|
||||||
def activate(self, args):
|
def activate(self, args):
|
||||||
if not self.core.login():
|
if not self.core.login():
|
||||||
|
|
Loading…
Reference in a new issue