@clerc/plugin-help 0.24.0 → 0.25.0

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
@@ -46,7 +46,7 @@ const renderCliffy = (sections) => {
46
46
  const body = formattedBody.join("\n");
47
47
  rendered.push(table([pc.bold(`${section.title}:`)], [body]).toString());
48
48
  } else if (section.type === "inline") {
49
- const formattedBody = section.items.map((item) => [pc.bold(item.title), item.body]);
49
+ const formattedBody = section.items.map((item) => [pc.bold(`${item.title}:`), item.body]);
50
50
  const tableGenerated = table(...formattedBody);
51
51
  rendered.push(tableGenerated.toString());
52
52
  }
@@ -64,7 +64,7 @@ const renderTyper = (sections) => {
64
64
  padding: 0.5
65
65
  }));
66
66
  } else if (section.type === "inline") {
67
- const formattedBody = section.items.map((item) => [pc.bold(item.title), item.body]);
67
+ const formattedBody = section.items.map((item) => [pc.bold(`${item.title}:`), item.body]);
68
68
  const tableGenerated = table(...formattedBody);
69
69
  rendered.push(tableGenerated.toString());
70
70
  }
@@ -75,10 +75,10 @@ const renderTyper = (sections) => {
75
75
 
76
76
  const DELIMITER = pc.yellow("-");
77
77
  const NO_DESCRIPTION = "(No description)";
78
- const NAME = "Name:";
79
- const VERSION = "Version:";
80
- const COMMANDS = "Commands";
78
+ const NAME = "Name";
79
+ const VERSION = "Version";
81
80
  const SUBCOMMAND = "Subcommand";
81
+ const COMMANDS = "Commands";
82
82
  const FLAGS = "Flags";
83
83
  const DESCRIPTION = "Description";
84
84
  const USAGE = "Usage";
package/dist/index.mjs CHANGED
@@ -46,7 +46,7 @@ const renderCliffy = (sections) => {
46
46
  const body = formattedBody.join("\n");
47
47
  rendered.push(table([pc.bold(`${section.title}:`)], [body]).toString());
48
48
  } else if (section.type === "inline") {
49
- const formattedBody = section.items.map((item) => [pc.bold(item.title), item.body]);
49
+ const formattedBody = section.items.map((item) => [pc.bold(`${item.title}:`), item.body]);
50
50
  const tableGenerated = table(...formattedBody);
51
51
  rendered.push(tableGenerated.toString());
52
52
  }
@@ -64,7 +64,7 @@ const renderTyper = (sections) => {
64
64
  padding: 0.5
65
65
  }));
66
66
  } else if (section.type === "inline") {
67
- const formattedBody = section.items.map((item) => [pc.bold(item.title), item.body]);
67
+ const formattedBody = section.items.map((item) => [pc.bold(`${item.title}:`), item.body]);
68
68
  const tableGenerated = table(...formattedBody);
69
69
  rendered.push(tableGenerated.toString());
70
70
  }
@@ -75,10 +75,10 @@ const renderTyper = (sections) => {
75
75
 
76
76
  const DELIMITER = pc.yellow("-");
77
77
  const NO_DESCRIPTION = "(No description)";
78
- const NAME = "Name:";
79
- const VERSION = "Version:";
80
- const COMMANDS = "Commands";
78
+ const NAME = "Name";
79
+ const VERSION = "Version";
81
80
  const SUBCOMMAND = "Subcommand";
81
+ const COMMANDS = "Commands";
82
82
  const FLAGS = "Flags";
83
83
  const DESCRIPTION = "Description";
84
84
  const USAGE = "Usage";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-help",
3
- "version": "0.24.0",
3
+ "version": "0.25.0",
4
4
  "author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
5
5
  "description": "Clerc plugin help",
6
6
  "keywords": [
@@ -54,11 +54,11 @@
54
54
  "boxen": "^7.0.1",
55
55
  "get-func-name": "^2.0.0",
56
56
  "picocolors": "^1.0.0",
57
- "@clerc/toolkit": "0.24.0",
58
- "@clerc/utils": "0.24.0"
57
+ "@clerc/toolkit": "0.25.0",
58
+ "@clerc/utils": "0.25.0"
59
59
  },
60
60
  "devDependencies": {
61
- "@clerc/core": "0.24.0"
61
+ "@clerc/core": "0.25.0"
62
62
  },
63
63
  "scripts": {
64
64
  "build": "puild",