feat: add dry-run options and retry helper
This commit is contained in:
1 parent
af577f07da
commit
fdfb1df0de
4 files changed
+32
-1
No files matched your search
@@ -17,6 +17,10 @@ export async function webhookCommand(
|
||||
throw new Error("Port must be between 1 and 65535");
|
||||
}
|
||||
await deps.ensurePortAvailable(port);
|
||||
if (opts.reply === "dry-run") {
|
||||
runtime.log(`[dry-run] would start webhook on port ${port} path ${opts.path}`);
|
||||
return undefined;
|
||||
}
|
||||
const server = await deps.startWebhook(
|
||||
port,
|
||||
opts.path,
|
||||
|
||||
Reference in new issue
Block a user