@clerc/plugin-help
Advanced tools
Comparing version 0.25.0 to 0.25.1
@@ -168,5 +168,8 @@ import { definePlugin, Root, withBrackets, resolveCommand, NoSuchCommandError, formatCommandName } from '@clerc/core'; | ||
const sections = []; | ||
generateCliDetail(sections, cli, subcommand); | ||
generateCliDetail(sections, cli, { | ||
...subcommand, | ||
name: formatCommandName(command) | ||
}); | ||
const parameters = ((_a = subcommand.parameters) == null ? void 0 : _a.join(" ")) || void 0; | ||
const commandName = ctx.name === Root ? "" : ` ${formatCommandName(subcommand.name)}`; | ||
const commandName = ` ${formatCommandName(command)}`; | ||
const parametersString = parameters ? ` ${parameters}` : ""; | ||
@@ -263,2 +266,4 @@ const flagsString = subcommand.flags ? " [flags]" : ""; | ||
} | ||
} else { | ||
printHelp(generateSubcommandHelp(render, ctx, ctx.raw._)); | ||
} | ||
@@ -265,0 +270,0 @@ } else { |
{ | ||
"name": "@clerc/plugin-help", | ||
"version": "0.25.0", | ||
"version": "0.25.1", | ||
"author": "Ray <nn_201312@163.com> (https://github.com/so1ve)", | ||
@@ -57,7 +57,7 @@ "description": "Clerc plugin help", | ||
"picocolors": "^1.0.0", | ||
"@clerc/toolkit": "0.25.0", | ||
"@clerc/utils": "0.25.0" | ||
"@clerc/toolkit": "0.25.1", | ||
"@clerc/utils": "0.25.1" | ||
}, | ||
"devDependencies": { | ||
"@clerc/core": "0.25.0" | ||
"@clerc/core": "0.25.1" | ||
}, | ||
@@ -64,0 +64,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
20156
582
+ Added@clerc/toolkit@0.25.1(transitive)
+ Added@clerc/utils@0.25.1(transitive)
- Removed@clerc/toolkit@0.25.0(transitive)
- Removed@clerc/utils@0.25.0(transitive)
Updated@clerc/toolkit@0.25.1
Updated@clerc/utils@0.25.1