@clerc/plugin-help 0.18.0 → 0.19.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
@@ -1,5 +1,5 @@
1
1
  import { definePlugin, resolveCommand, NoSuchCommandError, SingleCommand } from '@clerc/core';
2
- import { toArray, gracefulFlagName } from '@clerc/utils';
2
+ import { toArray, gracefulFlagName, kebabCase } from '@clerc/utils';
3
3
  import pc from 'picocolors';
4
4
  import getFuncName from 'get-func-name';
5
5
  import { Table } from '@clerc/toolkit';
@@ -147,7 +147,7 @@ const showSubcommandHelp = (ctx, command) => {
147
147
  if (flag.alias) {
148
148
  flagNameWithAlias.push(gracefulFlagName(flag.alias));
149
149
  }
150
- const items = [pc.blue(flagNameWithAlias.join(", "))];
150
+ const items = [pc.blue(flagNameWithAlias.map(kebabCase).join(", "))];
151
151
  if (flag.description) {
152
152
  items.push(DELIMITER, flag.description);
153
153
  }
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  import { definePlugin, resolveCommand, NoSuchCommandError, SingleCommand } from '@clerc/core';
2
- import { toArray, gracefulFlagName } from '@clerc/utils';
2
+ import { toArray, gracefulFlagName, kebabCase } from '@clerc/utils';
3
3
  import pc from 'picocolors';
4
4
  import getFuncName from 'get-func-name';
5
5
  import { Table } from '@clerc/toolkit';
@@ -147,7 +147,7 @@ const showSubcommandHelp = (ctx, command) => {
147
147
  if (flag.alias) {
148
148
  flagNameWithAlias.push(gracefulFlagName(flag.alias));
149
149
  }
150
- const items = [pc.blue(flagNameWithAlias.join(", "))];
150
+ const items = [pc.blue(flagNameWithAlias.map(kebabCase).join(", "))];
151
151
  if (flag.description) {
152
152
  items.push(DELIMITER, flag.description);
153
153
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clerc/plugin-help",
3
- "version": "0.18.0",
3
+ "version": "0.19.0",
4
4
  "author": "Ray <nn_201312@163.com> (https://github.com/so1ve)",
5
5
  "description": "Clerc plugin help",
6
6
  "keywords": [
@@ -53,11 +53,11 @@
53
53
  "dependencies": {
54
54
  "get-func-name": "^2.0.0",
55
55
  "picocolors": "^1.0.0",
56
- "@clerc/toolkit": "0.18.0",
57
- "@clerc/utils": "0.18.0"
56
+ "@clerc/toolkit": "0.19.0",
57
+ "@clerc/utils": "0.19.0"
58
58
  },
59
59
  "devDependencies": {
60
- "@clerc/core": "0.18.0"
60
+ "@clerc/core": "0.19.0"
61
61
  },
62
62
  "scripts": {
63
63
  "build": "puild",