import tab from "@bomb.sh/tab/citty"; import { defineCommand } from "citty"; import { audit } from "./audit"; import { ci } from "./ci"; import { login, logout, whoami } from "./auth"; import { db } from "./db"; import { down } from "./down"; import { exec } from "./exec"; import { exportCommand } from "./export"; import { logs } from "./logs"; import { operations } from "./operations"; import { ps } from "./ps"; import { restart } from "./restart"; import { rollback } from "./rollback"; import { s3 } from "./s3"; import { start } from "./start"; import { stop } from "./stop"; import { up } from "./up"; import { users } from "./users"; import { trust } from "./trust"; export const main = defineCommand({ meta: { name: "kuber", version: "2.3.3", description: "Docker Compose -> K8s translation layer", }, args: { config: { type: "string", description: "Path to a kuber configuration file", }, }, subCommands: { audit, ci, db, down, export: exportCommand, exec, logs, login, logout, operations, ps, restart, rollback, s3, start, stop, up, users, trust, whoami, }, }); let completion: ReturnType | undefined; export function initializeCompletion() { completion ??= tab(main); return completion; }