UNPKG

@squiz/dxp

Version:

The common dxp library for cli commands

33 lines (32 loc) 1.02 kB
/*! * @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'; /** * Add a plugin to `@squiz/dxp-cli`. * @export * @class PluginAddCommand * @extends {BaseCommand} * @implements {Commandable} */ export declare class PluginAddCommand extends BaseCommand implements Commandable { /** * TODO: * @template T TODO: * @param {CommandContext} context TODO: * @returns {(Observable<unknown> | Promise<unknown> | unknown)} TODO: * @memberof PluginAddCommand */ execute(context: CommandContext): Observable<unknown> | Promise<unknown> | unknown; /** * TODO: * @param {CommandContext} context TODO: * @returns {Array<string>} TODO: * @memberof PluginAddCommand */ usages(context: CommandContext): Array<string>; }