Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

next
ts 16 lines 524 Bytes
Raw
1 import { Command, Flag } from 'effect/cli';
2 import { runOrgsSwitch } from './orgs.switch.handler';
3
4 const orgId = Flag.String('org-id').pipe(
5 Flag.optional,
6 Flag.withDescription('Organization ID to use as global default')
7 );
8
9 const limit = Flag.Int('limit').pipe(
10 Flag.withDefault(50),
11 Flag.withDescription('Max orgs to fetch from API (default: 50)')
12 );
13
14 export const orgsCmd$Switch = Command.make('switch', { orgId, limit }, runOrgsSwitch).pipe(
15 Command.withDescription('Switch current organization context.')
16 );