{"_id":"@fig/complete-commander","_rev":"16-bd6ff380fb4b5933a9d9cb1c09d12068","name":"@fig/complete-commander","dist-tags":{"latest":"3.2.0"},"versions":{"2.0.0":{"name":"@fig/complete-commander","version":"2.0.0","keywords":["commander","fig","spec","generator","plugin","integration"],"author":{"name":"Federico Ciardi","email":"fed.ciardi@gmail.com"},"license":"MIT","_id":"@fig/complete-commander@2.0.0","maintainers":[{"name":"parssa","email":"parssak@gmail.com"},{"name":"rahathy","email":"rahul@sarathy.org"},{"name":"separaterecords","email":"robert@clover.gdn"},{"name":"phuctm97","email":"phuctm97@gmail.com"},{"name":"grant0417","email":"grantgurvis@gmail.com"},{"name":"sullivan-sean","email":"ssullivan61198@gmail.com"},{"name":"mschrage","email":"matthewschrage@gmail.com"},{"name":"fedeci","email":"fed.ciardi@gmail.com"},{"name":"brendanfalk","email":"brendan@fig.io"}],"homepage":"https://github.com/withfig/autocomplete-tools#readme","bugs":{"url":"https://github.com/withfig/autocomplete-tools/issues"},"dist":{"shasum":"d5295f58fbf8614edb81fc90f0d886c0cc747ed9","tarball":"https://registry.npmjs.org/@fig/complete-commander/-/complete-commander-2.0.0.tgz","fileCount":7,"integrity":"sha512-lsaoLBGdiHWPvmF5DcIDnC8dikeZxgLJEYb2zQiAAk0l/1ComkbjO12aoBWHxfE4eygbK6UjDcO2bAL5UQjzvQ==","signatures":[{"sig":"MEYCIQD3/Iv9fH4zRTjqE6BcgiWSx2s6mtlq35m7F2wEsZMaiwIhANa9Yklwfk9kPZQPCT4nj1VPtexrDwzYI6qJgblqbpzQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJielPiACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo7QA/9GozdBx0CPvubGvlrVnVW3polndKYVeVToNt0cn0IVEJ/4R50\r\nlLMty+qRL1i4clOCIksRs4DGUrKIcbbO/6k1vUJDKfVsRXt7SFsUvXKk1TFQ\r\nhhvEunGeFij9FXTG/HWrdlXEIwWQokuNMutRcBr5O9XbTnwlw5CxNT+Bz1j9\r\niK5fibTRaCHHMfTqoUOsm07YtdsUhmcw2DfYIwmcfZmAgtBcwFMLLAmDQp78\r\n6uJA1at93DWa3igEM2XSSh3S9LwWGn2/udE/tWEgyRbDIYgwiJz1gobUhkEo\r\nz1QYZcprlQlkktB8x9dM2QEKKZmn3Rs7KAwxKwaeWr3A/8kJIEhnqnvwidIo\r\n3UYpsoBktVzQGG/laNsI2I3PDgcYeHNIq3EwmSl44c5Q75JqpwWPmvWvFEf+\r\nZ9cGnyCpzCl25p91d6swOzjU7nq7XjkxO4oYHva7EMBy2W8CQeSV+SnFo7SS\r\nYc3NDEpeM7hI4IetVQHXMSz339mlJDYff2IEFxHyP5mLzKYVJwHJfNnm70yC\r\nLnCZ0Rub1VJRQQzwZeCp13K02FbaXKSkqMRv83+RrK8XTg1wAnfkYTudbcKU\r\nZCkaJTAlXH6q6XkAJZqgrw6VkzdPUiyXkSMcKjW6Y/jyTno65dF/kWt7eEqW\r\nE107DTuFakBz6IzwUT7vZwU3U9lGb8uy/+w=\r\n=+fjm\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","scripts":{"test":"ts-node test/index.ts","build":"tsc","prepack":"npm run build","clean:test":"git clean -Xf test","test:overwrite":"OVERWRITE=true npm run test"},"_npmUser":{"name":"fedeci","email":"fed.ciardi@gmail.com"},"repository":{"url":"git+https://github.com/withfig/autocomplete-tools.git","type":"git"},"description":"Export commander command as a Fig spec","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2021 Federico Ciardi\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"prettier":"^2.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chalk":"^4.1.2","ts-node":"^10.2.1","commander":"^8.1.0","typescript":"^4.4.2","@types/node":"^16.7.2","@types/prettier":"^2.3.2","@withfig/autocomplete-types":"^1.10.0"},"peerDependencies":{"commander":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/complete-commander_2.0.0_1652184034720_0.36700406059411095","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@fig/complete-commander","version":"2.0.1","keywords":["commander","fig","spec","generator","plugin","integration"],"author":"Federico Ciardi <fed.ciardi@gmail.com>","license":"MIT","_id":"@fig/complete-commander@2.0.1","maintainers":[{"name":"chaynabors","email":"chay@fig.io"},{"name":"squili","email":"squili@tutanota.com"},{"name":"ibayramli2001","email":"ibayramli2001@gmail.com"},{"name":"parssa","email":"parssak@gmail.com"},{"name":"rahathy","email":"rahul@sarathy.org"},{"name":"separaterecords","email":"robert@clover.gdn"},{"name":"grant0417","email":"grantgurvis@gmail.com"},{"name":"sullivan-sean","email":"ssullivan61198@gmail.com"},{"name":"mschrage","email":"matthewschrage@gmail.com"},{"name":"fedeci","email":"fed.ciardi@gmail.com"},{"name":"brendanfalk","email":"brendan@fig.io"}],"homepage":"https://github.com/withfig/autocomplete-tools#readme","bugs":{"url":"https://github.com/withfig/autocomplete-tools/issues"},"dist":{"shasum":"6dd84f8812389107529aaedebd1bb67ac8bc16c6","tarball":"https://registry.npmjs.org/@fig/complete-commander/-/complete-commander-2.0.1.tgz","fileCount":5,"integrity":"sha512-AbGETely7iwD4F7XHe4g7pW6icWYYqJMdQog8CdEi9syU/av5L0O24BvCfgEeGO6TRPMpC+rFL7ZDJsqRtckOA==","signatures":[{"sig":"MEUCIQC759Cqqjg+VI262DkBUzUD28+K0rVeyQkZ/MVkozFPwgIgVg2zZhOEOtub5dwBve7pt3B9CUyRjAqrrGqKe6oKFbY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10983,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjFkQYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrz9BAAnyRkODEYF4MHqeBlX7g4e2vpVRZplsCuJ4vUOlq6zxcqT3Br\r\n0rEokNSOWrkGj2K8xikBpteg8Hpz+kU6r+nnrjVbhfFRI4yZppEGNjNfYCen\r\nhZ0ovuVpxVC52CAn3a+SZ9GY5gYKNmFWc7cDBBcELVOp0YKiqujOWrdQ1ru/\r\nuaoSJFlCSfvpM6yOilGiITLtEFlIo2grUaRlraFEpStscXWX7ZAmf41dV5Jl\r\nwNrAzyRqjJ/C1fssUrzSHK28FNXFrN8nAWr2YairQcqYZP1Gsk6y1gNkzcN3\r\nQfQYr2Ak0OoY0U1VeSkDC+I77OuvkcbeQOP5bV86q3O34e7eNu+CbZqVmLuS\r\n6gKrq8PK9wgFSgGNDQqHW5IE3v5PMz/5tXbqep2YviBHPUsEVsgJeOsM4UiQ\r\nbGhrOvp30+y5Y8tSWSJHAwFrGybGQlACh3O/amnhqYlprra/BDZSZUwaxxee\r\n3AIGOP15yS/o6I/yUuE/yTkJG+7eTgO8UcgQeml0bexyuXT9Wlbhhuh1VHsz\r\nb7Tx9nMYRqyEKXEfY1RqtIVlTnw7ViK6kd+JjIx10ZMAsGsM+dhqXMwXxpWl\r\nMHo+Hal2AEn/SR+iVnPiO1jq5rS726ck8Ls/QEZ4oui1hvC31vk0IsQ+YOcK\r\nr48rqbhZvjd8UNN17X5d9G1qDXCIES9e7mo=\r\n=LSUA\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/index.js","gitHead":"35017733f7129dcfeeefbc2127237c98b89fd434","scripts":{"test":"ts-node test/index.ts","build":"tsc","prepack":"yarn build","clean:test":"git clean -Xf test","test:overwrite":"OVERWRITE=true yarn test"},"_npmUser":{"name":"fedeci","email":"fed.ciardi@gmail.com"},"repository":{"url":"git+https://github.com/withfig/autocomplete-tools.git","type":"git"},"description":"Export commander command as a Fig spec","directories":{},"dependencies":{"prettier":"^2.3.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"chalk":"^4.1.2","ts-node":"^10.2.1","commander":"^8.1.0","typescript":"^4.4.2","@types/node":"^16.7.2","@types/prettier":"^2.3.2","@withfig/autocomplete-types":"^1.10.0"},"peerDependencies":{"commander":"^8.0.0"},"_npmOperationalInternal":{"tmp":"tmp/complete-commander_2.0.1_1662403608368_0.8850396921035579","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@fig/complete-commander","version":"3.0.0","keywords":["commander","fig","spec","generator","plugin","integration"],"author":{"name":"Federico Ciardi","email":"fed.ciardi@gmail.com"},"license":"MIT","_id":"@fig/complete-commander@3.0.0","maintainers":[{"name":"superbryntendo","email":"hi@bryn.io"},{"name":"chaynabors","email":"chaynabors@gmail.com"},{"name":"grant0417","email":"grantgurvis@gmail.com"},{"name":"brendanfalk","email":"brendan@fig.io"}],"homepage":"https://github.com/withfig/autocomplete-tools#readme","bugs":{"url":"https://github.com/withfig/autocomplete-tools/issues"},"dist":{"shasum":"02826f8604adfb694e576b39ad53acd735aa9d18","tarball":"https://registry.npmjs.org/@fig/complete-commander/-/complete-commander-3.0.0.tgz","fileCount":5,"integrity":"sha512-jxiF1O+xiqdM7jECmTTrSO5w35iKsVRcSCz9mu20R4bFgLJS+61VNHw2A3EY7gU1kKlLJye0TmkyTfAoPhIq7A==","signatures":[{"sig":"MEQCIHavsHDLTTT+ijLfUv2+hfe3i7aEwJrq0PX+ffVDTaoPAiAFG9r5yVOta8RVgVlLUe6REhxOgQA38uVBk6Rkr6o8Ug==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11812},"main":"lib/index.js","_from":"file:fig-complete-commander-3.0.0.tgz","types":"./lib/index.d.ts","scripts":{"test":"tsx test/index.ts","build":"tsc","clean:test":"git clean -Xf test","test:overwrite":"OVERWRITE=true yarn test"},"_npmUser":{"name":"grant0417","email":"grantgurvis@gmail.com"},"_resolved":"/private/var/folders/np/c_m3qzv10j587tchz6y1g9300000gr/T/b315a16be6ba61529f6a6d48ba11bc1e/fig-complete-commander-3.0.0.tgz","_integrity":"sha512-jxiF1O+xiqdM7jECmTTrSO5w35iKsVRcSCz9mu20R4bFgLJS+61VNHw2A3EY7gU1kKlLJye0TmkyTfAoPhIq7A==","repository":{"url":"git+https://github.com/withfig/autocomplete-tools.git","type":"git"},"_npmVersion":"10.1.0","description":"Export commander command as a Fig spec","directories":{},"_nodeVersion":"20.9.0","dependencies":{"prettier":"^3.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.1.4","chalk":"^5.3.0","commander":"^11.1.0","typescript":"~5.2.0","@types/node":"^20.9.2","@withfig/autocomplete-types":"^1.29.0"},"peerDependencies":{"commander":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/complete-commander_3.0.0_1700593077022_0.7520181552074552","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@fig/complete-commander","version":"3.1.0","keywords":["commander","fig","spec","generator","plugin","integration"],"author":{"name":"Federico Ciardi","email":"fed.ciardi@gmail.com"},"license":"MIT","_id":"@fig/complete-commander@3.1.0","maintainers":[{"name":"superbryntendo","email":"hi@bryn.io"},{"name":"chaynabors","email":"chaynabors@gmail.com"},{"name":"grant0417","email":"grantgurvis@gmail.com"},{"name":"brendanfalk","email":"brendan@fig.io"}],"homepage":"https://github.com/withfig/autocomplete-tools#readme","bugs":{"url":"https://github.com/withfig/autocomplete-tools/issues"},"dist":{"shasum":"21d4910539ce9aa3eb53d8364422b883f4e72b1b","tarball":"https://registry.npmjs.org/@fig/complete-commander/-/complete-commander-3.1.0.tgz","fileCount":5,"integrity":"sha512-J6O5WMO8YChpk5FvFfSWYuws8gIbHATheoXEDUy5Or2k1sY56A94UcJhOG2NByKbPCRnCH/StU6dzt+pMRQ9hQ==","signatures":[{"sig":"MEUCIQC9rQ88Cjhq/3uZymQyhzu1ruQEOWqAA0EK+GoygG+hiQIgKeN/aqB+rVzR/Hwj/SNMAtkyHiNwNV6OYm5vIU17ryM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11872},"main":"lib/index.js","_from":"file:fig-complete-commander-3.1.0.tgz","types":"./lib/index.d.ts","scripts":{"test":"tsx test/index.ts","build":"tsc","clean:test":"git clean -Xf test","test:overwrite":"OVERWRITE=true yarn test"},"_npmUser":{"name":"grant0417","email":"grantgurvis@gmail.com"},"_resolved":"/private/var/folders/np/c_m3qzv10j587tchz6y1g9300000gr/T/916933ec2877f45390ab50e1792dffba/fig-complete-commander-3.1.0.tgz","_integrity":"sha512-J6O5WMO8YChpk5FvFfSWYuws8gIbHATheoXEDUy5Or2k1sY56A94UcJhOG2NByKbPCRnCH/StU6dzt+pMRQ9hQ==","repository":{"url":"git+https://github.com/withfig/autocomplete-tools.git","type":"git"},"_npmVersion":"10.5.0","description":"Export commander command as a Fig spec","directories":{},"_nodeVersion":"20.12.2","dependencies":{"prettier":"^3.2.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.11.0","chalk":"^5.3.0","commander":"^11.1.0","typescript":"^5.4.5","@types/node":"^20.12.13","@withfig/autocomplete-types":"^1.31.0"},"peerDependencies":{"commander":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/complete-commander_3.1.0_1717181766728_0.03706073588474901","host":"s3://npm-registry-packages"}},"3.2.0":{"name":"@fig/complete-commander","version":"3.2.0","keywords":["commander","fig","spec","generator","plugin","integration"],"author":{"name":"Federico Ciardi","email":"fed.ciardi@gmail.com"},"license":"MIT","_id":"@fig/complete-commander@3.2.0","maintainers":[{"name":"superbryntendo","email":"hi@bryn.io"},{"name":"chaynabors","email":"chaynabors@gmail.com"},{"name":"grant0417","email":"grantgurvis@gmail.com"},{"name":"brendanfalk","email":"brendan@fig.io"}],"homepage":"https://github.com/withfig/autocomplete-tools#readme","bugs":{"url":"https://github.com/withfig/autocomplete-tools/issues"},"dist":{"shasum":"1aa3df8a11528f1289c1c4782499c185c8612dc2","tarball":"https://registry.npmjs.org/@fig/complete-commander/-/complete-commander-3.2.0.tgz","fileCount":5,"integrity":"sha512-1Holl3XtRiANVKURZwgpjCnPuV4RsHp+XC0MhgvyAX/avQwj7F2HUItYOvGi/bXjJCkEzgBZmVfCr0HBA+q+Bw==","signatures":[{"sig":"MEYCIQD+BtvAnHQS2dK8X3Okfe41S5tjpGOVyPJTJVD5kMgWQwIhAMvlw+Zt1eP7P5qhmPHkiL0Y3bjXFwblX5qQxjDH8ZXs","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11915},"main":"lib/index.js","_from":"file:fig-complete-commander-3.2.0.tgz","types":"./lib/index.d.ts","scripts":{"test":"tsx test/index.ts","build":"tsc","clean:test":"git clean -Xf test","test:overwrite":"OVERWRITE=true yarn test"},"_npmUser":{"name":"grant0417","email":"grantgurvis@gmail.com"},"_resolved":"/private/var/folders/np/c_m3qzv10j587tchz6y1g9300000gr/T/3d561614c3d4e91123987c6080e11533/fig-complete-commander-3.2.0.tgz","_integrity":"sha512-1Holl3XtRiANVKURZwgpjCnPuV4RsHp+XC0MhgvyAX/avQwj7F2HUItYOvGi/bXjJCkEzgBZmVfCr0HBA+q+Bw==","repository":{"url":"git+https://github.com/withfig/autocomplete-tools.git","type":"git"},"_npmVersion":"10.5.0","description":"Export commander command as a Fig spec","directories":{},"_nodeVersion":"20.12.2","dependencies":{"prettier":"^3.2.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^4.11.2","chalk":"^5.3.0","commander":"^11.1.0","typescript":"^5.4.5","@types/node":"^20.13.0","@withfig/autocomplete-types":"^1.31.0"},"peerDependencies":{"commander":"^11.1.0"},"_npmOperationalInternal":{"tmp":"tmp/complete-commander_3.2.0_1717691807514_0.08308734385677896","host":"s3://npm-registry-packages"}}},"time":{"created":"2022-05-10T12:00:34.631Z","modified":"2025-02-04T00:23:53.646Z","2.0.0":"2022-05-10T12:00:34.867Z","2.0.1":"2022-09-05T18:46:48.521Z","3.0.0":"2023-11-21T18:57:57.160Z","3.1.0":"2024-05-31T18:56:06.874Z","3.2.0":"2024-06-06T16:36:47.699Z"},"bugs":{"url":"https://github.com/withfig/autocomplete-tools/issues"},"author":{"name":"Federico Ciardi","email":"fed.ciardi@gmail.com"},"license":"MIT","homepage":"https://github.com/withfig/autocomplete-tools#readme","keywords":["commander","fig","spec","generator","plugin","integration"],"repository":{"url":"git+https://github.com/withfig/autocomplete-tools.git","type":"git"},"description":"Export commander command as a Fig spec","maintainers":[{"email":"brendan@fig.io","name":"brendanfalk"},{"email":"chaynabors@gmail.com","name":"chaynabors"},{"email":"grantgurvis@gmail.com","name":"grant0417"}],"readme":"# Commander integration\nA tool to speed up the workflow of converting [Commander](https://github.com/tj/commander.js) commands to [Fig](https://github.com/withfig/autocomplete) completion spec files.\n\n---\n\n## Docs\n\n```ts\ngenerateCompletionSpec(command[, options]): string\n```\nGenerate a completion spec from the provided command and return it a string.\n- `command`: a `commander.Command` object\n- [`options`](#options): an object containing the following optional properties:\n  - [`figSpecCommandName`](#specify-the-fig-command-name): specify the name of the command used to generate the fig spec ([see](#custom-command)). It defaults to `'generate-fig-spec'`\n\n```ts\naddCompletionSpecCommand(command): void\n```\nAdd a new Subcommand to the provided command that will print a spec generated when invoked through `$CLI generate-fig-spec`.\n- `command`: a `commander.Command` object\n\n\n## Usage\nUsing this library is as simple as calling a function.\nThe snippet of code below generates a new spec each time the executable file is run.\n```js\nimport { program } from 'commander'\nimport { generateCompletionSpec } from '@fig/complete-commander'\n\nprogram\n  .name('babel')\n  .description('The compiler for writing next generation JavaScript')\n  .version('7.16.0')\n  .argument('<file>', 'file to compile')\n\n// Do not generate if production env\nif (process.env.NODE_ENV === 'development') {\n  const spec = generateCompletionSpec(program) // write the generated spec to a file or print it to the console\n}\n```\n\n### Custom command\nYou can also provide a custom command that generates a spec file when called. For example, the program below generates the Fig spec when `eslint generate-fig-spec` is run from a Terminal.\n\n```js\nimport { program } from 'commander'\nimport { addCompletionSpecCommand } from '@fig/complete-commander'\n\nprogram\n  .name('eslint')\n  .description('Find and fix problems in your JavaScript code')\n  .version('8.0.0')\n  .argument('<file>', 'file to lint')\n\nif (process.env.NODE_ENV === 'development') {\n  addCompletionSpecCommand(program)\n}\nprogram.parse()\n```\n\n> _NOTE: the command can be called whatever you want, but if you specify a name different from `'generate-fig-spec'` you should set the [`figSpecCommandName`](#specify-the-fig-command-name) option._\n\n## Options for `generateCompletionSpec`\n### Specify the fig command name\nWhen creating a [custom command](#custom-command) to generate a Fig spec whose name is different from `'generateCompletionSpec'` you want to avoid including it in the generated file. This option helps you do that.\n\n```js\nprogram\n  .name('eslint')\n  .description('Find and fix problems in your JavaScript code')\n  .version('8.0.0')\n  .argument('<file>', 'file to lint')\n\nif (process.env.NODE_ENV === 'development') {\n  program\n    .command('createSpec') // this command will not be included in the generated spec\n    .description('Generate a fig spec')\n    .action(() => {\n      generateCompletionSpec(program, { figSpecCommandName: 'createSpec' })\n    })\n}\nprogram.parse()\n```\n\n---\n\n_p.s. this tool has been written for `commander@8`, but should work in the most of the previous versions too._\n\n## Contributors\nThis integration was built by [Federico Ciardi](https://github.com/fedeci/). Please see his repo for previous git history: [https://github.com/fedeci/commander-to-fig](https://github.com/fedeci/commander-to-fig).\n","readmeFilename":"README.md"}