UNPKG

@visulima/api-platform

Version:

Visulima API platform is a set of tools to build and consume web APIs

2 lines 1.03 kB
import {a}from'../../../chunk-ZT3FNDYC.mjs';import'../../../chunk-HZWWJL43.mjs';import {exit}from'process';var m=(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 a(e.framework,e.path,{excludePaths:e.excludePaths??[],group:e.group,includePaths:e.includePath??[],verbose:e.verbose});}catch(s){console.log(),console.error(s),exit(1);}});},l=m;export{l as listCommand};//# sourceMappingURL=index.mjs.map //# sourceMappingURL=index.mjs.map