@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
|
|
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
|
}
|