MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / invoke_shell_command

Function invoke_shell_command

bota/src/bota/__main__.py:497–511  ·  view source on GitHub ↗
(commands, project_id)

Source from the content-addressed store, hash-verified

495 text=True,
496 )
497def invoke_shell_command(commands, project_id):
498 try:
499
500 return subprocess.run(
501 commands,
502 check=True,
503 capture_output=True,
504 text=True,
505 )
506 except subprocess.CalledProcessError as e:
507 if "Enable it by visiting https://console.developers" in e.stderr:
508 enable_compute_services(project_id)
509 return invoke_shell_command(commands, project_id)
510 else:
511 raise e # Re-raise the exception for other errors
512
513
514

Callers 1

list_all_ips_regionalFunction · 0.85

Calls 1

enable_compute_servicesFunction · 0.85

Tested by

no test coverage detected