UNPKG

@oclif/plugin-legacy

Version:

converts older style plugins to be compatible with oclif

27 lines (26 loc) 966 B
import { Command, Interfaces, Plugin } from '@oclif/core'; export declare class PluginLegacy extends Plugin implements Interfaces.Plugin { config: Interfaces.Config; base: Interfaces.Plugin; _base: string; protected _moduleCommands?: Command.Class[]; protected _moduleTopics?: Interfaces.Topic[]; constructor(config: Interfaces.Config, base: Interfaces.Plugin); protected get moduleCommands(): Command.Class[]; protected get moduleTopics(): Interfaces.Topic[]; get topics(): Interfaces.Topic[]; findCommand(id: string, opts: { must: true; }): Promise<Command.Class>; findCommand(id: string, opts?: { must?: boolean; }): Promise<Command.Class | undefined>; protected getCommandIds(): Promise<any[]>; private convertCommand; private convertFromFlow; private convertFromICommand; private convertFromV5; private isFlowCommand; private isICommand; private isV5Command; }