userstate

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name    = ".jacu-harness"
	HomeEnv = "JACU_HOME"
)

Variables

This section is empty.

Functions

func Dir

func Dir() (string, error)

func DirIn

func DirIn(home string) string

func DirOrLocal

func DirOrLocal() string

func WorktreesDir

func WorktreesDir(home string) string

Types

type Outcome

type Outcome struct {
	Moved             bool
	From, To, Skipped string
}

func Migrate

func Migrate(home, currentName, legacyName string) (Outcome, error)

Migrate stays as a generic utility for a future rename. It is no longer wired into Dir: the .jacu-mcp lineage was retired in SDD-019, and an automatic migration that fails closed when both directories exist cost more than it returned — it surfaced as "home directory unavailable", sending the binary to its cwd fallback and littering checkouts with state directories.

Jump to

Keyboard shortcuts

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