hanzio 3.1.0 → 3.1.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.
@@ -348,6 +348,8 @@ ${groupHelp(group, path, globalFields)}`);
348
348
  const child = Object.hasOwn(group, token) ? group[token] : undefined;
349
349
  if (!child) {
350
350
  const names = Object.keys(group);
351
+ if (builtIn(group))
352
+ names.push("completion");
351
353
  const guess = closest(token, names);
352
354
  throw new UsageError(`Unknown command "${[...path, token].join(" ")}".${guess ? ` Did you mean "${[...path, guess].join(" ")}"?` : ` Commands: ${names.join(", ")}`}`);
353
355
  }
@@ -2,7 +2,7 @@ import {
2
2
  CliError2,
3
3
  defineCommand2,
4
4
  defineCli2
5
- } from "../../index-6ragggbs.js";
5
+ } from "../../index-nfvq3zax.js";
6
6
  export {
7
7
  CliError2 as CliError,
8
8
  defineCli2 as defineCli,
@@ -3,7 +3,7 @@ import {
3
3
  CliError2,
4
4
  defineCommand2,
5
5
  defineCli2
6
- } from "../../index-6ragggbs.js";
6
+ } from "../../index-nfvq3zax.js";
7
7
  import"../../index-najbyzpr.js";
8
8
  import {
9
9
  validateCatalogs2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hanzio",
3
- "version": "3.1.0",
3
+ "version": "3.1.1",
4
4
  "description": "A lightweight set of utility functions for TypeScript",
5
5
  "type": "module",
6
6
  "module": "./dist/src/index.js",
package/src/cli/index.ts CHANGED
@@ -387,6 +387,7 @@ complete -F ${fn} ${config.name}
387
387
  const child = Object.hasOwn(group, token) ? group[token] : undefined
388
388
  if (!child) {
389
389
  const names = Object.keys(group)
390
+ if (builtIn(group)) names.push('completion')
390
391
  const guess = closest(token, names)
391
392
  throw new UsageError(
392
393
  `Unknown command "${[...path, token].join(' ')}".${guess ? ` Did you mean "${[...path, guess].join(' ')}"?` : ` Commands: ${names.join(', ')}`}`