Documentation
¶
Index ¶
- type Replacer
- func (r Replacer) AddGitArgs(args []string) Replacer
- func (r Replacer) AddTemplates(templates map[string]string) Replacer
- func (r Replacer) Cached(key string) bool
- func (r Replacer) Discover(source string, filter *filter.Filter) error
- func (r Replacer) Empty(key string) bool
- func (r Replacer) Files(template string, filter *filter.Filter) ([]string, error)
- func (r Replacer) HasEmpty() bool
- func (r Replacer) ReplaceAndSplit(command string, maxlen int) ([]string, []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Replacer ¶
type Replacer struct {
// contains filtered or unexported fields
}
func (Replacer) AddGitArgs ¶ added in v2.1.2
func (Replacer) AddTemplates ¶ added in v2.1.2
func (Replacer) ReplaceAndSplit ¶
ReplaceAndSplit substitutes file templates in command and chunks the result to respect maxlen. It consumes the cache entries (entry.items is drained), so this method should be called only once per Replacer instance.
Click to show internal directories.
Click to hide internal directories.