refactor: simplify cli commands

This commit is contained in:
Peter Steinberger
2026-01-08 07:16:05 +01:00
parent 79ac0af719
commit 19595a8f99
33 changed files with 359 additions and 1427 deletions

View File

@@ -42,8 +42,7 @@ export function resolveBonjourCliPath(
const argv = opts.argv ?? process.argv;
const argvPath = argv[1];
if (argvPath && isFile(argvPath)) {
const base = path.basename(argvPath);
if (!base.includes("gateway-daemon")) return argvPath;
return argvPath;
}
const cwd = opts.cwd ?? process.cwd();