@oclif/core 2.9.3 → 2.9.5
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/lib/command.d.ts +1 -1
- package/lib/command.js +1 -1
- package/lib/help/index.js +5 -1
- package/package.json +1 -1
package/lib/command.d.ts
CHANGED
|
@@ -93,7 +93,7 @@ export declare abstract class Command {
|
|
|
93
93
|
constructor(argv: string[], config: Config);
|
|
94
94
|
protected get ctor(): typeof Command;
|
|
95
95
|
protected _run<T>(): Promise<T>;
|
|
96
|
-
exit(code?: number):
|
|
96
|
+
exit(code?: number): never;
|
|
97
97
|
warn(input: string | Error): string | Error;
|
|
98
98
|
error(input: string | Error, options: {
|
|
99
99
|
code?: string;
|
package/lib/command.js
CHANGED
package/lib/help/index.js
CHANGED
|
@@ -107,7 +107,11 @@ class Help extends HelpBase {
|
|
|
107
107
|
if (this.config.flexibleTaxonomy) {
|
|
108
108
|
const matches = this.config.findMatches(subject, originalArgv);
|
|
109
109
|
if (matches.length > 0) {
|
|
110
|
-
const result = await this.config.runHook('command_incomplete', {
|
|
110
|
+
const result = await this.config.runHook('command_incomplete', {
|
|
111
|
+
id: subject,
|
|
112
|
+
argv: originalArgv.filter(o => !subject.split(':').includes(o)),
|
|
113
|
+
matches,
|
|
114
|
+
});
|
|
111
115
|
if (result.successes.length > 0)
|
|
112
116
|
return;
|
|
113
117
|
}
|