@clerc/plugin-help 0.12.0 → 0.12.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/dist/index.js CHANGED
@@ -62,7 +62,7 @@ const generateCliDetail = (sections, cli, subcommand) => {
62
62
  if (subcommand) {
63
63
  items.push({
64
64
  title: pc.gray("Subcommand:"),
65
- body: pc.green(subcommand)
65
+ body: pc.green(subcommand.name)
66
66
  });
67
67
  }
68
68
  sections.push({
@@ -71,7 +71,7 @@ const generateCliDetail = (sections, cli, subcommand) => {
71
71
  });
72
72
  sections.push({
73
73
  title: "Description:",
74
- body: [cli._description]
74
+ body: [(subcommand == null ? void 0 : subcommand.description) || cli._description]
75
75
  });
76
76
  };
77
77
  const generateExamples = (sections, examples) => {
@@ -123,7 +123,7 @@ const showSubcommandHelp = (ctx, command) => {
123
123
  throw new NoSuchCommandError(command.join(" "));
124
124
  }
125
125
  const sections = [];
126
- generateCliDetail(sections, cli, subcommand.name);
126
+ generateCliDetail(sections, cli, subcommand);
127
127
  const parameters = ((_a = subcommand.parameters) == null ? void 0 : _a.join(", ")) || "";
128
128
  sections.push({
129
129
  title: "Usage:",
package/dist/index.mjs CHANGED
@@ -62,7 +62,7 @@ const generateCliDetail = (sections, cli, subcommand) => {
62
62
  if (subcommand) {
63
63
  items.push({
64
64
  title: pc.gray("Subcommand:"),
65
- body: pc.green(subcommand)
65
+ body: pc.green(subcommand.name)
66
66
  });
67
67
  }
68
68
  sections.push({
@@ -71,7 +71,7 @@ const generateCliDetail = (sections, cli, subcommand) => {
71
71
  });
72
72
  sections.push({
73
73
  title: "Description:",
74
- body: [cli._description]
74
+ body: [(subcommand == null ? void 0 : subcommand.description) || cli._description]
75
75
  });
76
76
  };
77
77
  const generateExamples = (sections, examples) => {
@@ -123,7 +123,7 @@ const showSubcommandHelp = (ctx, command) => {
123
123
  throw new NoSuchCommandError(command.join(" "));
124
124
  }
125
125
  const sections = [];
126
- generateCliDetail(sections, cli, subcommand.name);
126
+ generateCliDetail(sections, cli, subcommand);
127
127
  const parameters = ((_a = subcommand.parameters) == null ? void 0 : _a.join(", ")) || "";
128
128
  sections.push({
129
129
  title: "Usage:",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-help",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
5
5
  "description": "Clerc plugin help",
6
6
  "keywords": [
@@ -51,12 +51,12 @@
51
51
  "@clerc/core": "*"
52
52
  },
53
53
  "dependencies": {
54
- "@clerc/toolkit": "0.12.0",
55
- "@clerc/utils": "0.12.0",
56
- "picocolors": "^1.0.0"
54
+ "picocolors": "^1.0.0",
55
+ "@clerc/toolkit": "0.12.1",
56
+ "@clerc/utils": "0.12.1"
57
57
  },
58
58
  "devDependencies": {
59
- "@clerc/core": "0.12.0"
59
+ "@clerc/core": "0.12.1"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "puild",