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 18 lines 575 Bytes
Raw
1 import { Argument, Command, Flag } from 'effect/cli';
2 import { runTriggersDisable } from './triggers.disable.handler';
3
4 const id = Argument.String('id').pipe(
5 Argument.withDescription('Trigger instance ID'),
6 Argument.optional
7 );
8
9 const dangerouslyAllow = Flag.Boolean('dangerously-allow').pipe(
10 Flag.withDescription('Acknowledge disabling this trigger instance'),
11 Flag.withDefault(false)
12 );
13
14 export const triggersCmd$Disable = Command.make(
15 'disable',
16 { id, dangerouslyAllow },
17 runTriggersDisable
18 ).pipe(Command.withDescription('Disable a trigger instance.'));