subprocess
eval_cmd(cmd)
¶
Evaluate a bash command and return its output.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
cmd |
str
|
The shell command to evaluate. |
required |
Returns:
Type | Description |
---|---|
OneOf[Issue, str]
|
The output of the command (or an Issue if the command failed). |
Source code in m/core/subprocess.py
exec_pnpm(pnpm_args)
¶
Execute pnpm with the given arguments.
This command will execute the pnpm command in the current working directory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
pnpm_args |
list[str]
|
The arguments to pass to pnpm. |
required |
Returns:
Type | Description |
---|---|
OneOf[Issue, None]
|
None if successful. |