/ src / utils / bash / specs / timeout.ts
timeout.ts
 1  import type { CommandSpec } from '../registry.js'
 2  
 3  const timeout: CommandSpec = {
 4    name: 'timeout',
 5    description: 'Run a command with a time limit',
 6    args: [
 7      {
 8        name: 'duration',
 9        description: 'Duration to wait before timing out (e.g., 10, 5s, 2m)',
10        isOptional: false,
11      },
12      {
13        name: 'command',
14        description: 'Command to run',
15        isCommand: true,
16      },
17    ],
18  }
19  
20  export default timeout