Documentation
ΒΆ
Overview ΒΆ
Command bonsai is a git worktree manager TUI. main wires the core layer (config, state, git discovery) into the Bubble Tea presentation layer.
Directories
ΒΆ
| Path | Synopsis |
|---|---|
|
internal
|
|
|
cli
Package cli implements bonsai's non-interactive subcommands.
|
Package cli implements bonsai's non-interactive subcommands. |
|
core/clipboard
Package clipboard copies text to the system clipboard via the first available external tool.
|
Package clipboard copies text to the system clipboard via the first available external tool. |
|
core/config
Package config loads the .bonsai.yaml project config via viper and persists mutable state (file-copy frequency, aliases) to the user config directory.
|
Package config loads the .bonsai.yaml project config via viper and persists mutable state (file-copy frequency, aliases) to the user config directory. |
|
core/exec
Package exec manages independent background subprocesses.
|
Package exec manages independent background subprocesses. |
|
core/fs
Package fs handles fuzzy file search over the main repo tree and copying files from the main repo into a worktree.
|
Package fs handles fuzzy file search over the main repo tree and copying files from the main repo into a worktree. |
|
core/gh
Package gh wraps the GitHub CLI (`gh`) for the operations bonsai needs.
|
Package gh wraps the GitHub CLI (`gh`) for the operations bonsai needs. |
|
core/git
Package git wraps the Git CLI.
|
Package git wraps the Git CLI. |
|
core/notify
Package notify sends best-effort desktop notifications.
|
Package notify sends best-effort desktop notifications. |
|
core/pkgmgr
Package pkgmgr detects a project's package manager / build tool and exposes its runnable scripts or targets.
|
Package pkgmgr detects a project's package manager / build tool and exposes its runnable scripts or targets. |
|
core/procstore
Package procstore owns bonsai's on-disk process state.
|
Package procstore owns bonsai's on-disk process state. |
|
core/updater
Package updater downloads and verifies official Bonsai releases.
|
Package updater downloads and verifies official Bonsai releases. |
|
daemon/client
Package client talks to a repo's bonsai daemon over its Unix socket.
|
Package client talks to a repo's bonsai daemon over its Unix socket. |
|
daemon/protocol
Package protocol defines the wire format between bonsai clients (TUI, CLI) and the per-repo daemon.
|
Package protocol defines the wire format between bonsai clients (TUI, CLI) and the per-repo daemon. |
|
daemon/server
Package server implements the per-repo bonsai daemon.
|
Package server implements the per-repo bonsai daemon. |
|
ui
Package ui is the Bubble Tea presentation layer.
|
Package ui is the Bubble Tea presentation layer. |
|
ui/components/modals
Package modals provides a single reusable centered overlay that operates in one of several modes: free text input, static selection, live fuzzy search, or yes/no confirmation.
|
Package modals provides a single reusable centered overlay that operates in one of several modes: free text input, static selection, live fuzzy search, or yes/no confirmation. |
|
ui/components/prefs
Package prefs is the in-app preferences overlay: theme preset picker with live apply, a full keybinding editor, and behavioral defaults.
|
Package prefs is the in-app preferences overlay: theme preset picker with live apply, a full keybinding editor, and behavioral defaults. |
|
ui/components/terminal
Package terminal is the right-pane viewport showing process output or git log.
|
Package terminal is the right-pane viewport showing process output or git log. |
|
ui/components/worktreelist
Package worktreelist is the left-pane list of git worktrees.
|
Package worktreelist is the left-pane list of git worktrees. |
|
ui/theme
Package theme centralizes the UI color palette so the whole TUI can be restyled from one place, driven by config (a preset plus per-role overrides).
|
Package theme centralizes the UI color palette so the whole TUI can be restyled from one place, driven by config (a preset plus per-role overrides). |
|
version
Package version holds metadata injected by GoReleaser.
|
Package version holds metadata injected by GoReleaser. |
Click to show internal directories.
Click to hide internal directories.