Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitContext ¶
GitContext returns (repoName, branch) for the given directory, or ("", "") if it's not inside a git repo. Shells out to `git` rather than parsing .git internals directly, since that stays correct across git versions.
Types ¶
type Command ¶
type Command struct {
ID int64
Command string
Cwd string
GitRepo string
GitBranch string
ExitCode int
DurationMs int64
Shell string
Hostname string
SessionID string
StartedAt time.Time
}
Command represents a single captured shell command.
type SearchOptions ¶
type SearchOptions struct {
Query string // FTS5 match query; empty means no text filter
Repo string
Cwd string
FailedOnly bool
Since time.Time // zero value means no lower bound
Limit int
}
SearchOptions filters a history search.
Click to show internal directories.
Click to hide internal directories.