liveperson-functions-cli
Version:
LivePerson Functions CLI
33 lines (32 loc) • 1.17 kB
TypeScript
import { FileService } from '../service/file.service';
import { PushView } from '../view/push.view';
interface IPushConfig {
lambdaFunctions?: string[];
inputFlags?: {
yes?: boolean;
['no-watch']?: boolean;
all?: boolean;
};
}
interface IPushControllerConfig {
pushView?: PushView;
fileService?: FileService;
}
export declare class PushController {
private readonly pushView;
private readonly fileService;
constructor({ pushView, fileService, }?: IPushControllerConfig);
/**
* Depending on the set flags this method optionally triggers push confirmations prompts
* to the user and accordingly triggers the push process itself. The Method surpresses
* Errors from the Listr Tasklist to keep the output clean.
* @param {IPushConfig} { lambdaFunctions, inputFlags } Input contains the names of the
* lambdas to push and the flags that have been set by the user.
* @returns {Promise<void>}
* @memberof PushController
*/
push({ lambdaFunctions, inputFlags, }: IPushConfig): Promise<void>;
private createNewLambdaBody;
private createUpdateLambdaBody;
}
export {};