installer

package
v0.1.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendMarkedBlock

func AppendMarkedBlock(existing []byte, owner string, body []byte) []byte

func BeginMarker

func BeginMarker(owner string) string

func ClientConfigPaths

func ClientConfigPaths(home, targetOS string) (map[string]string, error)

func EndMarker

func EndMarker(owner string) string

func UninstallCodexMCP

func UninstallCodexMCP(home string) error

func UninstallMarkedBlock

func UninstallMarkedBlock(path, owner string) error

Types

type ApplyResult

type ApplyResult struct {
	Applied         int    `json:"applied"`
	Skipped         int    `json:"skipped"`
	BackupDirectory string `json:"backupDirectory,omitempty"`
}

func Apply

func Apply(plan Plan) (ApplyResult, error)

type Change

type Change struct {
	Path   string      `json:"path"`
	Before []byte      `json:"before"`
	After  []byte      `json:"after"`
	Mode   fs.FileMode `json:"mode"`
}

type Client

type Client struct {
	ID          string   `json:"id"`
	Name        string   `json:"name"`
	Detected    bool     `json:"detected"`
	ConfigPaths []string `json:"configPaths"`
}

func DetectClients

func DetectClients(home, targetOS string) ([]Client, error)

type Plan

type Plan struct {
	Home     string   `json:"home"`
	Detected []Client `json:"detected"`
	Changes  []Change `json:"changes"`
	Warnings []string `json:"warnings"`
}

func BuildAllPlan

func BuildAllPlan(home string) (Plan, error)

func BuildCodexMCPPlan

func BuildCodexMCPPlan(home string) (Plan, error)

func BuildPlan

func BuildPlan(home string, detected []Client, changes []Change) (Plan, error)

func (Plan) Diff

func (plan Plan) Diff() string

Jump to

Keyboard shortcuts

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