UNPKG

@crestron/ch5-shell-utilities-cli

Version:
68 lines (67 loc) 2.59 kB
import * as commander from "commander"; import { Ch5CliUtil } from "./Ch5CliUtil"; import { Ch5CliLogger } from "./Ch5CliLogger"; import { Ch5CliNamingHelper } from "./Ch5CliNamingHelper"; import { Ch5CliProjectConfig } from "./Ch5CliProjectConfig"; import { Ch5CliConfigFileReader } from "./Ch5CliConfigFileReader"; import { ICh5CliConfigFile } from "./ICh5CliConfigFile"; export declare abstract class Ch5BaseClassForCliCreate { protected CONFIG_FILE: ICh5CliConfigFile; private readonly _cliUtil; private readonly _cliLogger; private readonly _cliConfigFileReader; private readonly _cliNamingHelper; private readonly _cliProjectConfig; private _folderPath; private TRANSLATION_FILE; private _inputArgs; get getEnquirer(): any; get getPrompt(): any; get getSelect(): any; get getConfirm(): any; protected get inputArgs(): any; protected get utils(): Ch5CliUtil; protected get logger(): Ch5CliLogger; get configFileReader(): Ch5CliConfigFileReader; protected get configFile(): ICh5CliConfigFile; protected get configFileArgs(): Ch5CliConfigFileReader; protected get namingHelper(): Ch5CliNamingHelper; protected get projectConfig(): Ch5CliProjectConfig; constructor(); processArgs(): any; processArgsAnalyze(args: any): any; mergeJSON(...args: any): {}; private merger; /** * * @param program */ setupCommand(program: commander.Command): Promise<commander.Command | undefined>; private compareVersions; checkVersionToExecute(): void; run(): Promise<void>; private convertArrayToCommaSeparatedString; /** * DO NOT DELETE */ initialize(): any; verifyInputParams(): Promise<void>; checkPromptQuestions(): Promise<void>; processRequest(): Promise<void>; getOutputResponse(): any; cleanUp(): Promise<void>; getCLIExecutionPath(): any; private showOutput; protected getConfigNode(nodeName: string): string | boolean | string[] | import("./ICh5CliConfigFile").ICh5CliConfigFileParamOptions[] | null; /** * Get the String output from default.json file in config * @param {*} key * @param {...any} values */ getText(key: string, ...values: string[]): any; logError(e: any): any; protected isConfigFileValid(filePath: string, schemaFilePath: string, preBuildValidationOnly?: boolean): Promise<boolean>; protected getFullPath(...pathValue: any): any; protected isConfigFileExist(fileName: string): boolean; protected getCurrentWorkingDirectory(): any; }