source dump of claude code
at main 20 lines 426 B view raw
1import type { CommandSpec } from '../registry.js' 2 3const 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 20export default timeout