UNPKG

liveperson-functions-cli

Version:
53 lines (52 loc) 1.95 kB
import { Answers } from 'inquirer'; import { PrettyPrintableError } from '@oclif/core/lib/interfaces'; import { LogMessage, ErrorMessage, TaskList, Prompt } from './printer'; import { ILambda } from '../types'; import { DefaultStructureService } from '../service/defaultStructure.service'; import { FileService } from '../service/file.service'; interface IPullViewConfig { prompt?: Prompt; log?: LogMessage; error?: ErrorMessage; tasklist?: TaskList; chalk?: any; fileService?: FileService; defaultStructureService?: DefaultStructureService; } export declare class PullView { private readonly prompt; private readonly log; private readonly error; private tasklist; private readonly chalk; private readonly fileService; private readonly defaultStructureService; constructor({ prompt, log, error, tasklist, fileService, defaultStructureService, chalk, }?: IPullViewConfig); /** * Ask for confirmation the passed functions * @param {ILambda[]} lambdas - lambdas * @param {string} accountId - accountId * @returns {Promise<Answers>} * @memberof PullView */ askForConfirmation(lambdas: ILambda[], accountId: string): Promise<Answers>; /** * Pulls functions from the platform to the local machine * @param {*} confirmedLambdasToPull - confirmed lambdas to pull * @param {boolean} [noWatch] - Changes the renderer of the tasklist, so no rendering is displayed in the console * @returns {Promise<void>} * @memberof PullView */ showPullProcess({ confirmedLambdasToPull, noWatch, }: { confirmedLambdasToPull: any; noWatch?: boolean; }): Promise<void>; /** * Shows an error message * @param {string|PrettyPrintableError} message - message * @memberof PullView */ showErrorMessage(message: string | PrettyPrintableError): void; private preparePromptMessage; } export {};