Documentation
¶
Overview ¶
Package replacer contains the app with methods replace env vars.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MissingVariablesErr = errors.New("missing variables")
Functions ¶
Types ¶
type EnvReplacer ¶
type EnvReplacer struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts *Options) EnvReplacer
func (EnvReplacer) GetMissingVars ¶
func (e EnvReplacer) GetMissingVars() []string
type MissingVars ¶
type Options ¶
type Options struct {
BasePath string
FilePattern string
ShowReport bool
ScanRecursive bool
TruncateFiles bool
StopOnErrors bool
StopOnMissing bool
StopOnEmpty bool
Strict bool
}
func WithPipedOptions ¶
func WithPipedOptions() *Options
type Reporter ¶
type Reporter struct {
Files []string
Matches []string
Dirs []string
Errors []error
MissesFiles []MissingVars
MissesVars []string
// contains filtered or unexported fields
}
func NewReporter ¶
Click to show internal directories.
Click to hide internal directories.