Documentation ¶
Index ¶
Constants ¶
View Source
const PathDelimiter = "."
Variables ¶
This section is empty.
Functions ¶
Types ¶
type SearchReplace ¶
type SearchReplace struct { // ByValue is the value of the field to be matched ByValue string // ByValueRegex is the value regex of the field to be matched ByValueRegex string // ByPath is the path of the field to be matched ByPath string // Count is the number of matches Count int // PutLiteral is the literal to be put at to field // filtered by path and/or value PutLiteral string // PutPattern is the setters reference comment to be added at to field PutPattern string PackagePath string // Result stores the result of executing the command Result []SearchResult // contains filtered or unexported fields }
SearchReplace struct holds the input parameters and results for Search and Replace operations on resource configs
func (*SearchReplace) Filter ¶
Filter parses input node and performs search and replace operation on the node
func (*SearchReplace) Perform ¶
func (sr *SearchReplace) Perform(resourcesPath string) error
Perform performs the search and replace operation on each node in the package path
type SearchResult ¶ added in v0.38.0
Click to show internal directories.
Click to hide internal directories.