#!/usr/bin/env node
import { docsCommand } from "./commands/docs.js";
import { generateTypesCommand } from "./commands/generate-types.js";
import { lintCommand } from "./commands/lint.js";
import { pluginCommand } from "./commands/plugin/index.js";
import { setupCommand } from "./commands/setup.js";
import { readFileSync } from "node:fs";
import { dirname, join } from "node:path";
import { fileURLToPath } from "node:url";
import { Command } from "commander";

//#region src/cli/index.ts
const pkgPath = join(dirname(fileURLToPath(import.meta.url)), "../../package.json");
const pkg = JSON.parse(readFileSync(pkgPath, "utf-8"));
const cmd = new Command();
cmd.name("appkit").description("CLI tools for Databricks AppKit").version(pkg.version);
cmd.addCommand(setupCommand);
cmd.addCommand(generateTypesCommand);
cmd.addCommand(lintCommand);
cmd.addCommand(docsCommand);
cmd.addCommand(pluginCommand);
cmd.parse();

//#endregion
export {  };
//# sourceMappingURL=index.js.map