@ibm/ibmi-ci
Version:
IBM i CLI tool
28 lines (27 loc) • 664 B
TypeScript
/// <reference types="node" />
export interface StandardIO {
onStdout?: (data: Buffer) => void;
onStderr?: (data: Buffer) => void;
stdin?: string;
}
/**
* External interface for extensions to call `code-for-ibmi.runCommand`
*/
export interface RemoteCommand {
title?: string;
command: string;
environment?: "ile" | "qsh" | "pase";
cwd?: string;
env?: Record<string, string>;
}
export interface CommandData extends StandardIO {
command: string;
directory?: string;
env?: Record<string, string>;
}
export interface CommandResult {
code: number | null;
stdout: string;
stderr: string;
command?: string;
}