Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

998 B
Raw Blame
import type { CommandSpec } from '../args'
import { GLOBAL_FLAGS } from '../args'

export const TERMINAL_CLOSE_COMMAND_SPEC: CommandSpec = {
  path: ['terminal', 'close'],
  destructive: true,
  summary: 'Close one terminal, its whole tab, or every terminal in a workspace',
  usage:
    'orca terminal close ([--terminal <handle>] [--tab] | --worktree <selector> --all) [--json]',
  allowedFlags: [...GLOBAL_FLAGS, 'terminal', 'tab', 'worktree', 'all'],
  notes: [
    'Without --all, closes one terminal pane/session; add --tab to close its whole tab.',
    'With --worktree <selector> --all, stops every terminal process owned by that workspace and durably removes its terminal tabs, layouts, and resume records.',
    'Use workspace Sleep when the terminals and agent sessions should resume later.'
  ],
  examples: [
    'orca terminal close --terminal term_abc123',
    'orca terminal close --terminal term_abc123 --tab --json',
    'orca terminal close --worktree active --all --json'
  ]
}