import { JSONSchemaType } from 'ajv'; import { SchemaIds } from '../constants/schemas'; import { GlobalOptions } from '../interfaces/common'; /** * Class to group common behavior among commands. * * @category Classes * @internal */ export default class Command { protected schemaId: SchemaIds; protected schema: JSONSchemaType; protected options: T_CommandOptions; protected globalOptions: GlobalOptions; protected ipCmd: string[]; protected _cmd: Array; protected _cmdToExec: string; get cmd(): Array; get cmdToExec(): string; constructor(schemaId: SchemaIds, schema: JSONSchemaType, options: T_CommandOptions, globalOptions: GlobalOptions, ipCmd: string[]); protected buildCmd(): void; private getCmdFromOptions; exec(): Promise; }