cmd

package
v0.31.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2026 License: MIT Imports: 81 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute runs the root command and exits non-zero on error. It installs a signal-cancelled context so Ctrl-C / SIGTERM on a NON-interactive command (agent -c, learn, eval, sync) cancels the turn and lets deferred cleanup run (store.Close, jobs.Finish, worktree cleanup, a mid-append events.jsonl flush) instead of hard-killing the process. The interactive TUI runs the terminal in raw mode, where Ctrl-C is delivered as a key event (vaxis handles it), not SIGINT — so this only bites the non-interactive paths, exactly where it's needed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL