in modular_cli/modular_cli_autocomplete/modular_cli_complete.py [0:0]
def load_meta_file():
root_commands = os.path.join(Path(__file__).parent.parent, ROOT_META_FILE)
with open(root_commands) as file:
root_file = json.load(file)
meta_file = os.path.join(str(Path.home()), MODULAR_CLI_DIR, CMD_META)
if not os.path.exists(meta_file):
return root_file
with open(meta_file) as meta_file:
meta_file = json.loads(meta_file.read())
meta_file.update(root_file)
return meta_file