@klevar/portal-cli 0.1.12 → 0.1.13

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.
@@ -750,7 +750,9 @@ if (!resource || resource === 'help' || resource === '--help') {
750
750
  console.log('Commands:');
751
751
  const grouped = {};
752
752
  for (const [key, cmd] of Object.entries(COMMANDS)) {
753
- const [res, act] = key.includes('.') ? key.split('.') : [key, ''];
753
+ const parts = key.split('.');
754
+ const res = parts[0];
755
+ const act = parts.length > 1 ? parts.slice(1).join('.') : '';
754
756
  if (!grouped[res]) grouped[res] = [];
755
757
  grouped[res].push({ key, action: act, desc: (cmd.description || cmd.desc), body: cmd.body, queryParams: cmd.queryParams });
756
758
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@klevar/portal-cli",
3
- "version": "0.1.12",
3
+ "version": "0.1.13",
4
4
  "description": "First-class npm CLI for the Klevar Client Management Portal",
5
5
  "type": "module",
6
6
  "bin": {