init
This commit is contained in:
commit
ec53fcbe95
1905 changed files with 513762 additions and 0 deletions
20
utils/bash/specs/timeout.ts
Normal file
20
utils/bash/specs/timeout.ts
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
import type { CommandSpec } from '../registry.js'
|
||||
|
||||
const timeout: CommandSpec = {
|
||||
name: 'timeout',
|
||||
description: 'Run a command with a time limit',
|
||||
args: [
|
||||
{
|
||||
name: 'duration',
|
||||
description: 'Duration to wait before timing out (e.g., 10, 5s, 2m)',
|
||||
isOptional: false,
|
||||
},
|
||||
{
|
||||
name: 'command',
|
||||
description: 'Command to run',
|
||||
isCommand: true,
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
export default timeout
|
||||
Loading…
Add table
Add a link
Reference in a new issue