UNPKG

liveperson-functions-cli

Version:
41 lines (40 loc) 1.35 kB
import { FileService } from './file.service'; interface IDefaultStructureServiceConstructorConfig { fileService?: FileService; cwd?: string; dirname?: string; } export interface IFunctionConfig { name?: string; event?: string; description?: string; } export declare class DefaultStructureService { private fileService; private cwd; private functionName; private dirname; constructor({ fileService, cwd, dirname, }?: IDefaultStructureServiceConstructorConfig); /** * Copies all files from the bin folder of the cli to the folder of the user. * @param {string} [functionName=''] - creates the necessary files for the init command * @memberof DefaultStructureService */ create(functionName?: string, update?: boolean): void; /** * Creates a folder function with a provided name. * @param {string} [functionName] - function name * @memberof DefaultStructureService */ createFunctionsFolder(functionName?: string, takeRoot?: boolean): void; private createReadme; private createDefaultServices; private copyIntellijSettings; private copyVsCodeSettings; private copyGitIgnore; private copySettings; private renameFunction; createFunction(functionConfig: IFunctionConfig): void; private adjustDefaultConfig; } export {};