Documentation ¶
Overview ¶
Base action
Do a find and replace for a string during a migration ¶
Do a find and replace for a string during a migration ¶
Do a find and replace for a string during a migration ¶
Manipulate a YAML document
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActionRunner ¶
type AddFile ¶
func NewAddFileAction ¶
type Replace ¶
type Replace struct { BaseDir string OldString string NewString string Glob string // contains filtered or unexported fields }
func NewReplaceAction ¶
type RunCommand ¶
type RunCommand struct { BaseDir string Command string GlobalConfig *configs.GlobalConfig }
func NewRunCommandAction ¶
func NewRunCommandAction(dir string, description string, input map[string]string, globalConfig *configs.GlobalConfig) *RunCommand
type YAML ¶ added in v1.3.0
func NewYAMLAction ¶ added in v1.3.0
func (*YAML) Run ¶ added in v1.3.0
Run executes the YAML action. It searches for files that match the specified glob pattern, reads each file, unmarshals its content into a YAML document, performs the specified subaction (e.g., delete), and then writes the modified document back to the file. If any errors occur during the process, they are logged and the execution continues with the next file.
Click to show internal directories.
Click to hide internal directories.