liveperson-functions-cli
Version:
LivePerson Functions CLI
38 lines (37 loc) • 1.45 kB
TypeScript
import { PrettyPrintableError } from '@oclif/core/lib/interfaces';
import { PackageManager } from '../controller/init.controller';
import { DefaultStructureService } from '../service/defaultStructure.service';
import { ErrorMessage, TaskList } from './printer';
interface IInitViewConstructor {
error?: ErrorMessage;
tasklist?: TaskList;
exec?: any;
defaultStructureService?: DefaultStructureService;
}
interface ITaskListConfig {
packageManager: PackageManager;
needDependencyInstallation: boolean;
functionNames?: string[];
update?: boolean;
}
export declare class InitView {
private error;
private tasklist;
private exec;
private defaultStructureService;
constructor({ error, tasklist, exec, defaultStructureService, }?: IInitViewConstructor);
/**
* Shows an error message
* @param {string|PrettyPrintableError} message - message
* @memberof InitView
*/
showErrorMessage(message: string | PrettyPrintableError): void;
/**
* Runs the tasklist which initialise all folder and files
* @param { packageManager, needDependencyInstallation, functionNames } - Passes the used package manager, if an installation is required and functions to initialize.
* @returns {Promise<void>}
* @memberof InitView
*/
showInitialiseTaskList({ packageManager, needDependencyInstallation, functionNames, update, }: ITaskListConfig): Promise<void>;
}
export {};