Initial Commit
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
import { defineCommand, runMain } from "citty";
|
||||
import { ps } from "./command/ps";
|
||||
import { up } from "./command/up";
|
||||
import { provideContext } from "./lib/context";
|
||||
import z, { ZodError } from "zod";
|
||||
|
||||
const main = defineCommand({
|
||||
meta: {
|
||||
name: "kuber",
|
||||
version: "1.0.0",
|
||||
description: "Docker Compose -> K8s translation layer",
|
||||
},
|
||||
subCommands: { ps, up },
|
||||
});
|
||||
|
||||
provideContext(() => runMain(main)).catch((e) => {
|
||||
if (e instanceof ZodError) console.error(z.prettifyError(e));
|
||||
else console.error(e);
|
||||
});
|
||||
Reference in New Issue
Block a user