MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / extract_script_args

Function extract_script_args

tests/autoalloc/utils.py:11–12  ·  view source on GitHub ↗
(script: str, prefix: str)

Source from the content-addressed store, hash-verified

9
10
11def extract_script_args(script: str, prefix: str) -> List[str]:
12 return [line[len(prefix) :].strip() for line in script.splitlines(keepends=False) if line.startswith(prefix)]
13
14
15def extract_script_commands(script: str) -> str:

Callers 3

test_pbs_queue_qsub_argsFunction · 0.85
check_nameFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_pbs_queue_qsub_argsFunction · 0.68
check_nameFunction · 0.68