diff options
Diffstat (limited to 'replacer.go')
-rw-r--r-- | replacer.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/replacer.go b/replacer.go index 5797920..7f97f34 100644 --- a/replacer.go +++ b/replacer.go @@ -308,6 +308,10 @@ func globalDefaultReplacements(key string) (any, bool) { return string(filepath.Separator), true case "system.os": return runtime.GOOS, true + case "system.wd": + // OK if there is an error; just return empty string + wd, _ := os.Getwd() + return wd, true case "system.arch": return runtime.GOARCH, true case "time.now": |