terraform/config
Joshua Spence af2c84de5a Add `basename` and `dirname` functions
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.
2017-03-28 09:29:26 -07:00
..
module config/module: don't panic when referencing undefined module 2017-03-16 20:14:20 -07:00
test-fixtures restructure JSON terraform config block AST 2017-03-21 18:15:58 -04:00
append.go merge config.Terraform fields in config.Append 2017-03-21 15:43:55 -04:00
append_test.go add terraform config merge logic to config.Merge 2017-03-22 09:01:54 -04:00
config.go
config_string.go
config_terraform.go merge config.Terraform fields in config.Append 2017-03-21 15:43:55 -04:00
config_terraform_test.go
config_test.go
config_tree.go
import_tree.go
interpolate.go
interpolate_funcs.go Add `basename` and `dirname` functions 2017-03-28 09:29:26 -07:00
interpolate_funcs_test.go Add `basename` and `dirname` functions 2017-03-28 09:29:26 -07:00
interpolate_test.go
interpolate_walk.go
interpolate_walk_test.go
lang.go
loader.go
loader_hcl.go restructure JSON terraform config block AST 2017-03-21 18:15:58 -04:00
loader_hcl_test.go
loader_test.go restructure JSON terraform config block AST 2017-03-21 18:15:58 -04:00
merge.go add terraform config merge logic to config.Merge 2017-03-22 09:01:54 -04:00
merge_test.go add terraform config merge logic to config.Merge 2017-03-22 09:01:54 -04:00
provisioner_enums.go
raw_config.go
raw_config_test.go
resource_mode.go
resource_mode_string.go
testing.go