MCPcopy Create free account
hub / github.com/aws/amazon-q-developer-cli / run_cmd_output

Function run_cmd_output

scripts/util.py:102–110  ·  view source on GitHub ↗
(
    args: Args,
    env: Env | None = None,
    cwd: Cwd | None = None,
)

Source from the content-addressed store, hash-verified

100
101
102def run_cmd_output(
103 args: Args,
104 env: Env | None = None,
105 cwd: Cwd | None = None,
106) -> str:
107 args_str = [str(arg) for arg in args]
108 print(f"+ {shlex.join(args_str)}")
109 res = subprocess.run(args, env=env, cwd=cwd, check=True, stdout=subprocess.PIPE)
110 return res.stdout.decode("utf-8")
111
112
113def run_cmd_status(

Callers 5

notarize_executableFunction · 0.90
get_secretmanager_jsonFunction · 0.90
generate_shaFunction · 0.90
build_hashFunction · 0.90
versionFunction · 0.85

Calls 2

joinMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected