synthfs

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2025 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CombinedExecutor

type CombinedExecutor struct {
	// contains filtered or unexported fields
}

CombinedExecutor handles both file system and command operations in the correct order

func NewCombinedExecutor

func NewCombinedExecutor(dryRun bool) *CombinedExecutor

NewCombinedExecutor creates a new combined executor

func NewCombinedExecutorWithPaths

func NewCombinedExecutorWithPaths(dryRun bool, p *paths.Paths) *CombinedExecutor

NewCombinedExecutorWithPaths creates a new combined executor with custom paths

func (e *CombinedExecutor) EnableHomeSymlinks(backup bool) *CombinedExecutor

EnableHomeSymlinks allows the executor to create symlinks in the user's home directory

func (*CombinedExecutor) ExecuteOperations

func (e *CombinedExecutor) ExecuteOperations(operations []types.Operation) error

ExecuteOperations executes operations in the correct order, handling dependencies

type CommandExecutor

type CommandExecutor struct {
	// contains filtered or unexported fields
}

CommandExecutor handles execution of command operations

func NewCommandExecutor

func NewCommandExecutor(dryRun bool) *CommandExecutor

NewCommandExecutor creates a new command executor

func (*CommandExecutor) ExecuteOperations

func (e *CommandExecutor) ExecuteOperations(ops []types.Operation) error

ExecuteOperations executes only OperationExecute type operations

func (*CommandExecutor) ExecuteWithResult

func (e *CommandExecutor) ExecuteWithResult(op types.Operation) Result

ExecuteWithResult executes a single operation and returns detailed result

type Result

type Result struct {
	Success bool
	Stdout  string
	Stderr  string
	Error   error
}

Result represents the result of a command execution

type SynthfsExecutor

type SynthfsExecutor struct {
	// contains filtered or unexported fields
}

SynthfsExecutor executes dodot operations using synthfs

func NewSynthfsExecutor

func NewSynthfsExecutor(dryRun bool) *SynthfsExecutor

NewSynthfsExecutor creates a new synthfs-based executor

func NewSynthfsExecutorWithPaths

func NewSynthfsExecutorWithPaths(dryRun bool, p *paths.Paths) *SynthfsExecutor

NewSynthfsExecutorWithPaths creates a new synthfs-based executor with custom paths

func (*SynthfsExecutor) EnableForce

func (e *SynthfsExecutor) EnableForce(force bool) *SynthfsExecutor

EnableForce enables or disables force mode (overwrite existing files)

func (e *SynthfsExecutor) EnableHomeSymlinks(backup bool) *SynthfsExecutor

EnableHomeSymlinks allows the executor to create symlinks in the user's home directory This should be used with caution and only for SymlinkPowerUp

func (*SynthfsExecutor) EnableRollback

func (e *SynthfsExecutor) EnableRollback(enable bool) *SynthfsExecutor

EnableRollback enables or disables automatic rollback on errors

func (*SynthfsExecutor) ExecuteOperations

func (e *SynthfsExecutor) ExecuteOperations(ops []types.Operation) error

ExecuteOperations executes a list of operations using synthfs

Jump to

Keyboard shortcuts

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