@clerc/plugin-help
Advanced tools
Comparing version 0.42.2 to 0.43.0
@@ -51,9 +51,17 @@ import * as _clerc_core from '@clerc/core'; | ||
showHelpWhenNoCommand?: boolean; | ||
/** Global notes. */ | ||
/** | ||
* Global notes. | ||
*/ | ||
notes?: string[]; | ||
/** Global examples. */ | ||
/** | ||
* Global examples. | ||
*/ | ||
examples?: [string, string][]; | ||
/** Banner. */ | ||
/** | ||
* Banner. | ||
*/ | ||
banner?: string; | ||
/** Renderers. */ | ||
/** | ||
* Renderers. | ||
*/ | ||
renderers?: Renderers; | ||
@@ -60,0 +68,0 @@ } |
@@ -334,3 +334,3 @@ import { Root, formatCommandName, definePlugin, withBrackets, NoSuchCommandError } from '@clerc/core'; | ||
} | ||
cli.inspector((ctx, next) => { | ||
cli.interceptor((ctx, next) => { | ||
const shouldShowHelp = ctx.flags.help; | ||
@@ -337,0 +337,0 @@ if (!ctx.hasRootOrAlias && ctx.raw._.length === 0 && showHelpWhenNoCommand && !shouldShowHelp) { |
{ | ||
"name": "@clerc/plugin-help", | ||
"version": "0.42.2", | ||
"version": "0.43.0", | ||
"author": "Ray <i@mk1.io> (https://github.com/so1ve)", | ||
@@ -51,7 +51,7 @@ "type": "module", | ||
"dependencies": { | ||
"@types/text-table": "^0.2.2", | ||
"@types/text-table": "^0.2.3", | ||
"string-width": "^6.1.0", | ||
"text-table": "^0.2.0", | ||
"yoctocolors": "^1.0.0", | ||
"@clerc/utils": "0.42.2" | ||
"@clerc/utils": "0.43.0" | ||
}, | ||
@@ -58,0 +58,0 @@ "peerDependencies": { |
15963
433
+ Added@clerc/utils@0.43.0(transitive)
- Removed@clerc/utils@0.42.2(transitive)
Updated@clerc/utils@0.43.0
Updated@types/text-table@^0.2.3