πŸ“„ File detail

utils/bash/specs/timeout.ts

🧩 .tsπŸ“ 21 linesπŸ’Ύ 426 bytesπŸ“ text
← Back to All Files

🎯 Use case

This file lives under β€œutils/”, which covers cross-cutting helpers (shell, tempfiles, settings, messages, process input, …). It primarily provides a default export (component, class, or entry function). It composes internal code from registry (relative imports).

Generated from folder role, exports, dependency roots, and inline comments β€” not hand-reviewed for every path.

🧠 Inline summary

import type { CommandSpec } from '../registry.js' const timeout: CommandSpec = { name: 'timeout', description: 'Run a command with a time limit',

πŸ“€ Exports (heuristic)

  • default

πŸ–₯️ Source preview

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