af2c84de5a
Adds `basename` and `dirname` interpolation. I want to add a `stack` tag to our infrastructure, the value of which is set to `${basename(path.cwd)}`. We currently use `${replace(path.cwd, "/^.+\\//", "")}` instead, but this is extremeley unreadable. The existance of a `basename` function would be very useful for this use case. I don't have an immediate use case for a `dirname` function, but it seemed reasonable to add it as well. |
||
---|---|---|
.. | ||
module | ||
test-fixtures | ||
append.go | ||
append_test.go | ||
config.go | ||
config_string.go | ||
config_terraform.go | ||
config_terraform_test.go | ||
config_test.go | ||
config_tree.go | ||
import_tree.go | ||
interpolate.go | ||
interpolate_funcs.go | ||
interpolate_funcs_test.go | ||
interpolate_test.go | ||
interpolate_walk.go | ||
interpolate_walk_test.go | ||
lang.go | ||
loader.go | ||
loader_hcl.go | ||
loader_hcl_test.go | ||
loader_test.go | ||
merge.go | ||
merge_test.go | ||
provisioner_enums.go | ||
raw_config.go | ||
raw_config_test.go | ||
resource_mode.go | ||
resource_mode_string.go | ||
testing.go |