import { n as showCommandHelp } from "./cli-5jFRFVk6.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-BvJOXEOo.mjs").then((module) => module.default),
		list: () => import("./list-DnH_4F6J.mjs").then((module) => module.default),
		remove: () => import("./remove-CtOpvzjb.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-sMnM9RGJ.mjs.map