workspace

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Workspace

type Workspace struct {
	Base   string // default branch reviews compare against (e.g. origin/main)
	Branch string // current branch of the worktree
	Dir    string // worktree root (git toplevel), or the cwd when not a repo
	Home   string // user home directory
	IsRepo bool   // whether Dir is a git worktree
}

Workspace is the single source of truth for where the app operates: the worktree it browses, edits, reviews, and launches sessions in.

func Resolve

func Resolve() (Workspace, error)

Resolve inspects the current working directory once and decides the working directory, worktree root, and branch for the whole app.

Jump to

Keyboard shortcuts

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