Documentation
¶
Overview ¶
Package file_insert implements the file_insert action handler.
The file_insert action inserts text before or after an anchor pattern with support for: - Literal and regex-based anchor matching - Before/after insertion positioning - Single or multiple anchor matches - Atomic writes (temp file + rename) - Backup creation before modification - Idempotency (no change if already inserted)
Index ¶
- type Handler
- func (h *Handler) DryRun(ctx actions.Context, step *config.Step) error
- func (h *Handler) Execute(ctx actions.Context, step *config.Step) (actions.Result, error)
- func (h *Handler) Metadata() actions.ActionMetadata
- func (h *Handler) Run(ctx actions.Context, step *config.Step) (actions.Result, error)
- func (h *Handler) Validate(step *config.Step) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct{}
Handler implements the Handler interface for file_insert actions.
func (*Handler) Metadata ¶
func (h *Handler) Metadata() actions.ActionMetadata
Metadata returns metadata about the file_insert action.
Click to show internal directories.
Click to hide internal directories.