UNPKG

liveperson-functions-cli

Version:
50 lines (49 loc) 1.45 kB
import { PrettyPrintableError } from '@oclif/core/lib/interfaces'; import { LogMessage, ErrorMessage } from './printer'; import { ILambda } from '../types'; interface IDeployViewConfig { error?: ErrorMessage; log?: LogMessage; cliUx?: any; } export declare class GetView { private readonly log; private readonly error; private readonly cliUx; constructor({ log, error, cliUx, }?: IDeployViewConfig); /** * Shows an error message * @param {string|PrettyPrintableError} message - message * @memberof GetView */ showErrorMessage(message: string | PrettyPrintableError): void; /** * Prints all functions (domain) as a table * @param {ILambda[]} functions - functions * @returns {void} * @memberof GetView */ printFunctions(functions: ILambda[]): void; /** * Prints all deployments (domain) as a table * @param {any} functions - functions * @returns {void} * @memberof GetView */ printDeployments(functions: any): void; /** * Prints all account informations * @param {*} accountInfo - account information * @returns {void} * @memberof GetView */ printAccountInformation(accountInfo: any): void; /** * Prints the events with the mapped names * @param {*} events - Events from the api * @returns {void} * @memberof GetView */ printEvents(events: any): void; } export {};