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
|
}
|
package/dist/src/cli/index.js
CHANGED
package/dist/src/i18n/cli.js
CHANGED
package/package.json
CHANGED
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(', ')}`}`
|