/**
 * Minified by jsDelivr using Terser v5.39.0.
 * Original file: /npm/@feathersjs/cli@5.0.44/lib/index.js
 *
 * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
 */
import chalk from"chalk";import{Command}from"commander";import{dirname}from"path";import{runGenerator,getContext,version}from"@feathersjs/generators";import{createRequire}from"node:module";export*from"commander";export{chalk};const require=createRequire(import.meta.url);export const commandRunner=e=>async n=>{const o=dirname(require.resolve("@feathersjs/generators")),r=getContext({...n});await Promise.resolve(r).then(runGenerator(o,e,"index.js")).catch((e=>{const{logger:n}=r.pinion;n.error(`Error: ${chalk.white(e.message)}`)}))};export const program=new Command;program.name("feathers").description("The Feathers command line interface 🕊️").version(version).showHelpAfterError();const generate=program.command("generate").alias("g");generate.command("app").description("Generate a new application").option("--name <name>","The name of the application").action(commandRunner("app")),generate.command("service").description("Generate a new service").option("--name <name>","The service name").option("--path <path>","The path to register the service on").option("--type <type>","The service type (knex, mongodb, custom)").action(commandRunner("service")),generate.command("hook").description("Generate a hook").option("--name <name>","The name of the hook").option("--type <type>","The hook type (around or regular)").action(commandRunner("hook")),generate.command("connection").description("Add a new database connection").action(commandRunner("connection")),generate.command("authentication").description("Add authentication to the application").action(commandRunner("authentication")),generate.description(`Run a generator. Currently available: \n  ${generate.commands.map((e=>`${chalk.blue(e.name())}: ${e.description()} `)).join("\n  ")}`);
//# sourceMappingURL=/sm/dfcf277e18a8ec1cd617d2f45f6847120192341f735255cae29ed1dac8168a6f.map