@zowe/imperative
Version:
framework for building configurable CLIs
21 lines • 776 B
TypeScript
import { ICommandResponse } from "../../doc/response/response/ICommandResponse";
/**
* Indicates the action performed.
*/
export type ImperativeYargsCommandAction = "syntax validation" | "command handler invoked" | "help invoked";
/**
* The Yargs response is provided on the callback for a command definition defined through the Zowe
* Yargs definer - when an execution of that command is complete - this response will be given to the callback.
*/
export interface IYargsResponse {
success: boolean;
/**
* Requested exit code for the process
*/
exitCode: number;
message: string;
actionPerformed: ImperativeYargsCommandAction;
commandResponses?: ICommandResponse[];
causeErrors?: Error;
}
//# sourceMappingURL=IYargsResponse.d.ts.map