import { defineCommand } from "politty";
import { appCommand } from "./app/index";
import { docCommand } from "./doc/index";
import { initCommand } from "./init/index";
import { internalCommand } from "./internal/index";
import { mockCommand } from "./mock/index";
import { moduleCommand } from "./module/index";
import { runCommand } from "./run/index";
import { updateCommand } from "./update/index";
import { verifyCommand } from "./verify/index";

export const mainCommand = defineCommand({
  name: "erp-kit",
  description: "ERP module framework CLI",
  subCommands: {
    module: moduleCommand,
    app: appCommand,
    verify: verifyCommand,
    mock: mockCommand,
    doc: docCommand,
    init: initCommand,
    update: updateCommand,
    run: runCommand,
    internal: internalCommand,
  },
});
