UNPKG

@squiz/dxp

Version:

The common dxp library for cli commands

33 lines (32 loc) 972 B
/*! * @license * Copyright Squiz Australia Pty Ltd. All Rights Reserved. */ import { Observable } from 'rxjs'; import { CommandContext } from '../../Context/Context.dto'; import { BaseCommand } from '../Command'; import { Commandable } from '../Command.dto'; /** * TODO: * @export * @class PluginCommand * @extends {BaseCommand} * @implements {Commandable} */ export declare class PluginCommand extends BaseCommand implements Commandable { /** * TODO: * @param {CommandContext} context TODO: * @returns {Array<string>} TODO: * @memberof PluginCommand */ aliases(context: CommandContext): Array<string>; /** * TODO: * @template T TODO: * @param {CommandContext} context TODO: * @returns {(Observable<unknown> | Promise<unknown> | unknown)} TODO: * @memberof PluginCommand */ execute(context: CommandContext): Observable<unknown> | Promise<unknown> | unknown; }