@oclif/plugin-help 5.2.19 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,8 @@
1
- @oclif/plugin-help
2
- ===================
1
+ # @oclif/plugin-help
3
2
 
4
3
  A CLI command to invoke the standard help functionality from [oclif/core](https://github.com/oclif/core).
5
4
 
6
5
  [![Version](https://img.shields.io/npm/v/@oclif/plugin-help.svg)](https://npmjs.org/package/@oclif/plugin-help)
7
- [![CircleCI](https://circleci.com/gh/oclif/plugin-help/tree/main.svg?style=svg)](https://circleci.com/gh/oclif/plugin-help/tree/main)
8
- [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/oclif/plugin-help?branch=main&svg=true)](https://ci.appveyor.com/project/heroku/plugin-help/branch/main)
9
6
  [![Known Vulnerabilities](https://snyk.io/test/npm/@oclif/plugin-help/badge.svg)](https://snyk.io/test/npm/@oclif/plugin-help)
10
7
  [![Downloads/week](https://img.shields.io/npm/dw/@oclif/plugin-help.svg)](https://npmjs.org/package/@oclif/plugin-help)
11
8
  [![License](https://img.shields.io/npm/l/@oclif/plugin-help.svg)](https://github.com/oclif/plugin-help/blob/main/package.json)
@@ -1,11 +1,11 @@
1
1
  import { Command } from '@oclif/core';
2
2
  export default class HelpCommand extends Command {
3
+ static args: {
4
+ commands: import("@oclif/core/lib/interfaces/parser.js").Arg<string | undefined, Record<string, unknown>>;
5
+ };
3
6
  static description: string;
4
7
  static flags: {
5
- 'nested-commands': import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
6
- };
7
- static args: {
8
- commands: import("@oclif/core/lib/interfaces/parser").Arg<string | undefined, Record<string, unknown>>;
8
+ 'nested-commands': import("@oclif/core/lib/interfaces/parser.js").BooleanFlag<boolean>;
9
9
  };
10
10
  static strict: boolean;
11
11
  run(): Promise<void>;
@@ -1,22 +1,19 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const core_1 = require("@oclif/core");
4
- class HelpCommand extends core_1.Command {
1
+ import { Args, Command, Flags, Help } from '@oclif/core';
2
+ export default class HelpCommand extends Command {
3
+ static args = {
4
+ commands: Args.string({ description: 'Command to show help for.', required: false }),
5
+ };
6
+ static description = 'Display help for <%= config.bin %>.';
7
+ static flags = {
8
+ 'nested-commands': Flags.boolean({
9
+ char: 'n',
10
+ description: 'Include all nested commands in the output.',
11
+ }),
12
+ };
13
+ static strict = false;
5
14
  async run() {
6
- const { flags, argv } = await this.parse(HelpCommand);
7
- const help = new core_1.Help(this.config, { all: flags['nested-commands'] });
15
+ const { argv, flags } = await this.parse(HelpCommand);
16
+ const help = new Help(this.config, { all: flags['nested-commands'] });
8
17
  await help.showHelp(argv);
9
18
  }
10
19
  }
11
- exports.default = HelpCommand;
12
- HelpCommand.description = 'Display help for <%= config.bin %>.';
13
- HelpCommand.flags = {
14
- 'nested-commands': core_1.Flags.boolean({
15
- description: 'Include all nested commands in the output.',
16
- char: 'n',
17
- }),
18
- };
19
- HelpCommand.args = {
20
- commands: core_1.Args.string({ required: false, description: 'Command to show help for.' }),
21
- };
22
- HelpCommand.strict = false;
package/lib/index.js CHANGED
@@ -1,3 +1 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {};
1
+ export default {};