Skip to main content

Class: SlackCLIProcess

Constructors

new SlackCLIProcess()

new SlackCLIProcess(
command,
globalOptions?,
commandOptions?): SlackCLIProcess

Parameters

command: string

globalOptions?: SlackCLIGlobalOptions

commandOptions?: SlackCLICommandOptions

Returns

SlackCLIProcess

Defined in

cli/cli-process.ts:64

Properties

command

command: string;

Description

The CLI command to invoke

Defined in

cli/cli-process.ts:52


commandOptions

commandOptions: SlackCLICommandOptions;

Description

The CLI command-specific options to pass to the command

Defined in

cli/cli-process.ts:62


globalOptions

globalOptions: SlackCLIGlobalOptions;

Description

The global CLI options to pass to the command

Defined in

cli/cli-process.ts:57

Methods

execAsync()

execAsync(shellOpts?): Promise<ShellProcess>

Parameters

shellOpts?: Partial<SpawnOptionsWithoutStdio>

Returns

Promise<ShellProcess>

Description

Executes the command asynchronously, returning the process details once the process finishes executing

Defined in

cli/cli-process.ts:76


execAsyncUntilOutputPresent()

execAsyncUntilOutputPresent(output, shellOpts?): Promise<ShellProcess>

Parameters

output: string

shellOpts?: Partial<SpawnOptionsWithoutStdio>

Returns

Promise<ShellProcess>

Description

Executes the command asynchronously, returning the process details once the process finishes executing

Defined in

cli/cli-process.ts:86


execSync()

execSync(shellOpts?): string

Parameters

shellOpts?: Partial<SpawnOptionsWithoutStdio>

Returns

string

Description

Executes the command synchronously, returning the process standard output

Defined in

cli/cli-process.ts:101