1
0
mirror of https://github.com/go-task/task.git synced 2025-11-25 22:32:55 +02:00

Changes per feedback

This commit is contained in:
Stephen Prater
2019-08-25 10:30:00 -07:00
parent e0f72a6193
commit db36bc67f1
7 changed files with 60 additions and 41 deletions

View File

@@ -18,6 +18,10 @@ type Templater struct {
err error
}
func (r *Templater) RefreshStringMap() {
r.strMap = r.Vars.ToStringMap()
}
func (r *Templater) Replace(str string) string {
if r.err != nil || str == "" {
return ""