writ

package
v0.1.0-dev.20260127201926 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2026 License: MIT Imports: 29 Imported by: 0

Documentation

Overview

Package writ implements the writ CLI commands.

Index

Constants

This section is empty.

Variables

View Source
var LayerOrder = []string{"base", "team", "personal"}

LayerOrder defines the processing order for repository layers. Layers are processed in this order, with later layers overriding earlier ones.

Functions

func CollectLayerSources

func CollectLayerSources() ([]tree.LayerSource, error)

CollectLayerSources gathers all configured repository layers and expands them into source/target pairs. Returns sources ordered: base/System, base/Home, team/System, team/Home, personal/System, personal/Home (if configured/exist).

func NewRootCmd

func NewRootCmd() *cobra.Command

NewRootCmd creates the root writ command with all subcommands.

Types

type DryRunNode

type DryRunNode struct {
	ID         string   `json:"id"`
	Operations []string `json:"operations"`
	Source     string   `json:"source"`
	Target     string   `json:"target"`
	Project    string   `json:"project"`
}

DryRunNode represents a node in the dry-run output.

type DryRunOutput

type DryRunOutput struct {
	SourceRoot string       `json:"source_root"`
	TargetRoot string       `json:"target_root"`
	Projects   []string     `json:"projects"`
	Nodes      []DryRunNode `json:"nodes"`
}

DryRunOutput represents the dry-run output format.

type TargetSpec

type TargetSpec struct {
	SourceDir  string // "System" or "Home"
	TargetRoot string // "/" or "$HOME"
}

TargetSpec defines a source directory within a repo and its deployment target.

func TargetOrder

func TargetOrder() []TargetSpec

TargetOrder defines the processing order for targets within each repo. System files are deployed before Home files.

Directories

Path Synopsis
Package identity provides age identity loading for writ.
Package identity provides age identity loading for writ.
Package manifest provides loading and validation for packages-manifest files.
Package manifest provides loading and validation for packages-manifest files.
Package receipt provides deployment receipt tracking for writ.
Package receipt provides deployment receipt tracking for writ.
Package secrets handles encryption/decryption operations via SOPS.
Package secrets handles encryption/decryption operations via SOPS.
Package segment provides segment-based directory matching for writ.
Package segment provides segment-based directory matching for writ.
Package state provides merged deployment state tracking for writ.
Package state provides merged deployment state tracking for writ.
Package status provides symlink status checking for writ deployments.
Package status provides symlink status checking for writ deployments.
Package tree provides deployment tree building for writ.
Package tree provides deployment tree building for writ.

Jump to

Keyboard shortcuts

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