import { n as showCommandHelp } from "./cli-B86kvKcR.mjs";
import process from "node:process";
import { defineCommand } from "citty";
//#region src/commands/plugin.ts
var plugin_default = defineCommand({
	meta: {
		name: "plugin",
		description: "Manage native OpenCode plugins"
	},
	subCommands: {
		add: () => import("./add-C3D1zioh.mjs").then((module) => module.default),
		list: () => import("./list-DWk0KhR1.mjs").then((module) => module.default),
		remove: () => import("./remove-B6h-Vyyv.mjs").then((module) => module.default)
	},
	async run({ cmd }) {
		if (process.argv.slice(2).length > 1) return;
		await showCommandHelp(cmd);
		if (!process.exitCode) process.exit(0);
	}
});
//#endregion
export { plugin_default as default };

//# sourceMappingURL=plugin-3RFCjGJh.mjs.map