@f5-sales-demo/pi-utils 21.25.0 → 21.27.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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/cli.ts +2 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@f5-sales-demo/pi-utils",
4
- "version": "21.25.0",
4
+ "version": "21.27.1",
5
5
  "description": "Shared utilities for pi packages",
6
6
  "homepage": "https://github.com/f5-sales-demo/xcsh",
7
7
  "author": "Can Boluk",
@@ -39,7 +39,7 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/bun": "1.4.2",
42
- "@f5-sales-demo/pi-natives": "21.25.0"
42
+ "@f5-sales-demo/pi-natives": "21.27.1"
43
43
  },
44
44
  "engines": {
45
45
  "bun": ">=1.4.2"
package/src/cli.ts CHANGED
@@ -429,12 +429,10 @@ export async function run(opts: RunOptions): Promise<void> {
429
429
 
430
430
  // Per-command help
431
431
  if (commandArgv.includes("--help") || commandArgv.includes("-h")) {
432
- const config = await loadAllCommands(opts);
433
432
  // Resolve aliases for help too
434
433
  const entry = findEntry(opts.commands, commandId);
435
- const Cmd = entry ? config.commands.get(entry.name) : undefined;
436
- if (Cmd) {
437
- renderCommandHelp(bin, entry!.name, Cmd);
434
+ if (entry) {
435
+ renderCommandHelp(bin, entry.name, await entry.load());
438
436
  } else {
439
437
  process.stderr.write(`Unknown command: ${commandId}\n`);
440
438
  }