@oclif/plugin-legacy

  • Version 2.0.7
  • Published
  • 447 kB
  • 5 dependencies
  • MIT license

Install

npm i @oclif/plugin-legacy
yarn add @oclif/plugin-legacy
pnpm add @oclif/plugin-legacy

Overview

converts older style plugins to be compatible with oclif

Index

Classes

class PluginLegacy

class PluginLegacy extends Plugin implements Interfaces.Plugin {}

    constructor

    constructor(config: Interfaces.Config, base: Interfaces.Plugin);

      property base

      base: Interfaces.Plugin;

        property config

        config: Interfaces.Config;

          property moduleCommands

          readonly moduleCommands: Command.Class[];

            property moduleTopics

            readonly moduleTopics: Interfaces.Topic[];

              property topics

              readonly topics: Interfaces.Topic[];

                method findCommand

                findCommand: {
                (id: string, opts: { must: true }): Promise<Command.Class>;
                (id: string, opts?: { must?: boolean }): Promise<any>;
                };

                  method getCommandIds

                  protected getCommandIds: () => Promise<any[]>;

                    Package Files (1)

                    Dependencies (5)

                    Dev Dependencies (29)

                    Peer Dependencies (1)

                    Badge

                    To add a badge like this onejsDocs.io badgeto your package's README, use the codes available below.

                    You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/@oclif/plugin-legacy.

                    • Markdown
                      [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/@oclif/plugin-legacy)
                    • HTML
                      <a href="https://www.jsdocs.io/package/@oclif/plugin-legacy"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>