UNPKG

liveperson-functions-cli

Version:
32 lines (31 loc) 1.02 kB
import { FileService } from '../service/file.service'; import { InitView as InitViewDefault } from '../view/init.view'; export declare type PackageManager = 'npm' | 'yarn'; interface IInitOptions { functionNames?: string[]; update?: boolean; } interface IInitControllerConfig { initView?: InitViewDefault; exec?: any; fileService?: FileService; cwd?: string; } export declare class InitController { private readonly initView; private exec; private fileService; private cwd; private update; constructor({ initView, exec, fileService, cwd, }?: IInitControllerConfig); /** * Creates the default project structure and adds function folder depending on the passed names. * @param {IInitOptions} - Passed function names * @returns {Promise<void>} - init view * @memberof InitController */ init({ functionNames, update, }?: IInitOptions): Promise<void>; private determinePackageManager; private needDependencyInstallation; } export {};