Documentation ¶
Overview ¶
Package value provides diffferent implementations to retrieve the value to replace while updating files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileValuer ¶
type FileValuer struct {
Path string
}
FileValuer is a valuer that returns the content of a specific file.
type Valuer ¶
type Valuer interface { // Value returns the value to replace while updating files in the given repository. Value(ctx context.Context, repoPath string) (string, error) }
Valuer is the interface for retrieving a value to replace while updating files.
func ParseValuer ¶
ParseValuer parses the valuer defined as string - from the CLI for example - and returns a properly formatted valuer.
Click to show internal directories.
Click to hide internal directories.