@visulima/api-platform
Version:
Visulima API platform is a set of tools to build and consume web APIs
2 lines • 1.09 kB
JavaScript
;var chunkOSYBNW3V_js=require('../../../chunk-OSYBNW3V.js');require('../../../chunk-4C666HHU.js');var process=require('process');var i=(o,t="list",r="List all available API routes; Supported frameworks are next, express, koa, hapi and fastify")=>{o.command(t).description(r).option("--framework <framework>","Framework to use, choose from next, express, koa, hapi and fastify").option("-p, --path [path]","...").option("--group [type]","Groups routes. Supported: path, tag").option("--include-path [path]","Includes only routes which contain a given path element. (comma-separated values)",[]).option("--exclude-path [path]","Excludes routes which contain a given path element. (comma-separated values)",[]).option("-v, --verbose","Verbose output.",false).action(async e=>{try{await chunkOSYBNW3V_js.a(e.framework,e.path,{excludePaths:e.excludePaths??[],group:e.group,includePaths:e.includePath??[],verbose:e.verbose});}catch(s){console.log(),console.error(s),process.exit(1);}});},m=i;exports.listCommand=m;//# sourceMappingURL=index.js.map
//# sourceMappingURL=index.js.map