MCPcopy Create free account
hub / github.com/apple/axlearn / infer_cli_name

Function infer_cli_name

axlearn/cloud/common/utils.py:160–162  ·  view source on GitHub ↗

Attempts to infer the CLI name.

()

Source from the content-addressed store, hash-verified

158
159
160def infer_cli_name() -> str:
161 """Attempts to infer the CLI name."""
162 return os.path.basename(os.environ.get("AXLEARN_CLI_NAME", ROOT_MODULE_NAME))
163
164
165def subprocess_run(argv: Union[str, Sequence[str]], *args, **kwargs) -> subprocess.CompletedProcess:

Callers 7

get_credentialsFunction · 0.90
wrappedFunction · 0.90
load_kube_configFunction · 0.90
create_vmFunction · 0.90
submitMethod · 0.90
submitMethod · 0.90
add_cmd_groupFunction · 0.90

Calls 1

getMethod · 0.80

Tested by

no test coverage detected