@strapi/strapi
Version:
An open source headless CMS solution to create and manage your own API. It provides a powerful dashboard and features to make your life easier. Databases supported: MySQL, MariaDB, PostgreSQL, SQLite
1 lines • 1.32 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../../../src/cli/commands/openapi/index.ts"],"sourcesContent":["import { createCommand } from 'commander';\n\nimport type { StrapiCommand } from '../../types';\nimport { runAction } from '../../utils/helpers';\nimport { action as generate } from './generate';\n\n/**\n * `$ strapi openapi`\n */\nconst command: StrapiCommand = () => {\n const openapi = createCommand('openapi').description(\n 'Manage OpenAPI specifications for your Strapi application'\n );\n\n // `$ strapi openapi generate [-o, --output <path>]`\n openapi\n .command('generate')\n .description('Generate an OpenAPI specification for the current Strapi application')\n .option('-o, --output <path>', 'Output file path for the OpenAPI specification')\n .action(runAction('openapi:generate', generate));\n\n return openapi;\n};\n\nexport { command };\n"],"names":["command","openapi","createCommand","description","option","action","runAction","generate"],"mappings":";;;;AAMA;;AAEC,UACKA,OAAyB,GAAA,IAAA;AAC7B,IAAA,MAAMC,OAAUC,GAAAA,aAAAA,CAAc,SAAWC,CAAAA,CAAAA,WAAW,CAClD,2DAAA,CAAA;;AAIFF,IAAAA,OAAAA,CACGD,OAAO,CAAC,UACRG,CAAAA,CAAAA,WAAW,CAAC,sEAAA,CAAA,CACZC,MAAM,CAAC,qBAAuB,EAAA,gDAAA,CAAA,CAC9BC,MAAM,CAACC,UAAU,kBAAoBC,EAAAA,MAAAA,CAAAA,CAAAA;IAExC,OAAON,OAAAA;AACT;;;;"}