Diffinery

codician/diffinerypublic

Open-source, agent-first GitHub and GitHub Actions alternative that runs on your own Cloudflare account: git hosting, pull requests, code review and drop-in GitHub Actions YAML on Workers, Durable Objects, R2 and Containers.

16 lines · 394 BRaw History
1import { main } from "./main.js";
2
3// EPIPE when piping into `head` and similar should end quietly.
4process.stdout.on("error", (e: NodeJS.ErrnoException) => {
5 if (e.code === "EPIPE") process.exit(0);
6});
7
8main(process.argv.slice(2)).then(
9 (code) => {
10 process.exitCode = code;
11 },
12 (e: unknown) => {
13 process.stderr.write(`error: ${String(e)}\n`);
14 process.exitCode = 1;
15 },
16);