Documentation
¶
Index ¶
- type CombinedExecutor
- type CommandExecutor
- type Result
- type SynthfsExecutor
- func (e *SynthfsExecutor) EnableForce(force bool) *SynthfsExecutor
- func (e *SynthfsExecutor) EnableHomeSymlinks(backup bool) *SynthfsExecutor
- func (e *SynthfsExecutor) EnableRollback(enable bool) *SynthfsExecutor
- func (e *SynthfsExecutor) ExecuteOperations(ops []types.Operation) ([]types.OperationResult, error)
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 (*CombinedExecutor) EnableHomeSymlinks ¶
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) ([]types.OperationResult, 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) ([]types.OperationResult, 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 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 (*SynthfsExecutor) EnableHomeSymlinks ¶
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) ([]types.OperationResult, error)
ExecuteOperations executes a list of operations using synthfs