Documentation
¶
Overview ¶
Package effects provides the default implementation of actions.Performer — mode-aware filesystem and command primitives used by action handlers.
Spec 16 (docs-working/spec-16-unify-dryrun-execute.md) collapses each handler's parallel Execute / DryRun / Check methods into a single Run(ctx, step) method. Inside Run, handlers call Performer methods instead of os.* directly. The Performer consults the current mode and either performs the side effect (ModeExecute) or returns a prediction (ModePlan).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewPerformer ¶
NewPerformer constructs an actions.Performer that performs real filesystem operations in ModeExecute and inspects state in ModePlan. modeFn is called once per primitive to decide the path; sudoPass is consulted when opts.Become is true.