{"version":3,"file":"command.mjs","sources":["../../src/logout/command.ts"],"sourcesContent":["import { createCommand } from 'commander';\nimport type { StrapiCloudCommand } from '../types';\nimport { runAction } from '../utils/helpers';\nimport action from './action';\n\n/**\n * `$ cloud device flow logout`\n */\nconst command: StrapiCloudCommand = ({ ctx }) => {\n return createCommand('cloud:logout')\n .alias('logout')\n .description('Strapi Cloud Logout')\n .option('-d, --debug', 'Enable debugging mode with verbose logs')\n .option('-s, --silent', \"Don't log anything\")\n .action(() => runAction('logout', action)(ctx));\n};\n\nexport default command;\n"],"names":["command","ctx","createCommand","alias","description","option","action","runAction"],"mappings":";;;;AAKA;;AAEC,IACKA,MAAAA,OAAAA,GAA8B,CAAC,EAAEC,GAAG,EAAE,GAAA;IAC1C,OAAOC,aAAAA,CAAc,gBAClBC,KAAK,CAAC,UACNC,WAAW,CAAC,uBACZC,MAAM,CAAC,eAAe,yCACtBA,CAAAA,CAAAA,MAAM,CAAC,cAAgB,EAAA,oBAAA,CAAA,CACvBC,MAAM,CAAC,IAAMC,SAAU,CAAA,QAAA,EAAUD,MAAQL,CAAAA,CAAAA,GAAAA,CAAAA,CAAAA;AAC9C;;;;"}