Skip to content

acmeportal


acmeportal / utils/commandExecutor / CommandExecutor

Class: CommandExecutor

Defined in: utils/commandExecutor.ts:14

Service for executing shell commands

Constructors

Constructor

new CommandExecutor(): CommandExecutor

Returns

CommandExecutor

Methods

execute()

execute(command, cwd?): Promise\<CommandResult>

Defined in: utils/commandExecutor.ts:21

Execute a shell command and return the result

Parameters

command

string

Command to execute

cwd?

string

Working directory for command execution (optional, defaults to current working directory)

Returns

Promise\<CommandResult>

Command execution result containing stdout and stderr