in modular_cli/service/help_client.py [0:0]
def extract_root_commands(admin_home_path):
path_to_meta = os.path.join(admin_home_path, ROOT_META_JSON)
if os.path.exists(path_to_meta):
with open(path_to_meta) as file:
root_commands = json.load(file)
return root_commands
else:
raise ModularCliInternalException(
'CLI root commands file is missing , '
'please write support team.')