Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 21, 04:45 UTC
| 1 | import { Argument, Command, Flag } from 'effect/cli'; |
| 2 | import { runConnectionsRemove } from './connections.remove.handler'; |
| 3 | |
| 4 | const account = Argument.String('account').pipe( |
| 5 | Argument.withDescription( |
| 6 | 'Connection selector: toolkit slug, alias, word_id, or connected account ID' |
| 7 | ) |
| 8 | ); |
| 9 | |
| 10 | const yes = Flag.Boolean('yes').pipe( |
| 11 | Flag.withAlias('y'), |
| 12 | Flag.withDefault(false), |
| 13 | Flag.withDescription('Remove without asking for confirmation') |
| 14 | ); |
| 15 | |
| 16 | export const connectionsCmd$Remove = Command.make( |
| 17 | 'remove', |
| 18 | { account, yes }, |
| 19 | runConnectionsRemove |
| 20 | ).pipe( |
| 21 | Command.withDescription( |
| 22 | 'Interactively remove a connection by toolkit slug, alias, word_id, or connected account ID.' |
| 23 | ), |
| 24 | Command.withExamples([ |
| 25 | { |
| 26 | command: 'composio connections remove gmail', |
| 27 | }, |
| 28 | { |
| 29 | command: 'composio connections remove work', |
| 30 | }, |
| 31 | { |
| 32 | command: 'composio connections remove castle', |
| 33 | }, |
| 34 | { |
| 35 | command: 'composio connections remove gmail --yes', |
| 36 | }, |
| 37 | ]) |
| 38 | ); |