MCPcopy
hub / github.com/legendary-gl/legendary / _resolve_aliases

Method _resolve_aliases

legendary/cli.py:56–64  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

54 return ql
55
56 def _resolve_aliases(self, name):
57 # make sure aliases exist if not yet created
58 self.core.update_aliases(force=False)
59 name = name.strip()
60 # resolve alias (if any) to real app name
61 return self.core.lgd.config.get(
62 section='Legendary.aliases', option=name,
63 fallback=self.core.lgd.aliases.get(name.lower(), name)
64 )
65
66 @staticmethod
67 def _print_json(data, pretty=False):

Callers 15

list_filesMethod · 0.95
list_savesMethod · 0.95
download_savesMethod · 0.95
clean_savesMethod · 0.95
sync_savesMethod · 0.95
launch_gameMethod · 0.95
install_gameMethod · 0.95
uninstall_gameMethod · 0.95
verify_gameMethod · 0.95
import_gameMethod · 0.95
infoMethod · 0.95
aliasMethod · 0.95

Calls 1

update_aliasesMethod · 0.80

Tested by

no test coverage detected