Class: SlackCLIProcess
Constructors
new SlackCLIProcess()
new SlackCLIProcess(
command,
globalOptions?,
commandOptions?): SlackCLIProcess
Parameters
• command: string
• globalOptions?: SlackCLIGlobalOptions
• commandOptions?: SlackCLICommandOptions
Returns
Defined in
Properties
command
command: string;
Description
The CLI command to invoke
Defined in
commandOptions
commandOptions: SlackCLICommandOptions;
Description
The CLI command-specific options to pass to the command
Defined in
globalOptions
globalOptions: SlackCLIGlobalOptions;
Description
The global CLI options to pass to the command
Defined in
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
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
execSync()
execSync(shellOpts?): string
Parameters
• shellOpts?: Partial
<SpawnOptionsWithoutStdio
>
Returns
string
Description
Executes the command synchronously, returning the process standard output