Skip to content

Commit 1344f95

Browse files
committed
update examples and add 2.0.0 release announcement
1 parent e800229 commit 1344f95

File tree

26 files changed

+67
-61
lines changed

26 files changed

+67
-61
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ The Terraform Provider Plugin "stdlib" provides additional functions to enhance
55
This README is purposefully short as all documentation is generated with `terraform-plugin-docs` and hosted at the [Terraform Registry](https://registry.terraform.io/providers/mschuchard/stdlib/latest/docs) as per usual.
66

77
This repository additionally does accept feature requests for e.g. additional functions or enhancements to current functions in the Github issue tracker.
8+
9+
### Upcoming 2.0.0 Release Announcement
10+
- All functions as of version 1.6.0 will be re-implemented as custom provider functions.
11+
- All new functions implemented after the release of version 2.0.0 will be custom provider functions only, and not data sources.
12+
- All data source functions that exist at the time of the release of version 1.6.0 will be maintained afterwards for any necessary bug fixes.
13+
- Please upgrade to Terraform version >= 1.8 by the release of version 2.1.0 to ensure support for any new functions supported by this provider.

examples/data-sources/stdlib_compare_list/data-source.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ data "stdlib_compare_list" "lesser" {
33
list_one = ["foo", "bar", "b"]
44
list_two = ["foo", "bar", "baz"]
55
}
6-
# => -1
6+
# result => -1
77

88
# Returns a comparison between two lists.
99
data "stdlib_compare_list" "equals" {
1010
list_one = ["pizza", "cake"]
1111
list_two = ["pizza", "cake"]
1212
}
13-
# => 0
13+
# result => 0
1414

1515
# Returns a comparison between two lists.
1616
data "stdlib_compare_list" "greater" {
1717
list_one = ["super", "hyper", "turbo"]
1818
list_two = ["pizza", "cake"]
1919
}
20-
# => 1
20+
# result => 1

examples/data-sources/stdlib_empty/data-source.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22
data "stdlib_empty" "list" {
33
list_param = []
44
}
5-
# => true
5+
# result => true
66

77
# Returns whether the map is empty.
88
data "stdlib_empty" "map" {
99
map_param = { "foo" = "bar" }
1010
}
11-
# => false
11+
# result => false
1212

1313
# Returns whether the set is empty.
1414
data "stdlib_empty" "set" {
1515
set_param = ["no"]
1616
}
17-
# => false
17+
# result => false
1818

1919
# Returns whether the string is empty.
2020
data "stdlib_empty" "string" {
2121
string_param = ""
2222
}
23-
# => true
23+
# result => true

examples/data-sources/stdlib_equal_map/data-source.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ data "stdlib_equal_map" "foo" {
33
map_one = { "hello" = "world" }
44
map_two = { "hello" = "world" }
55
}
6-
# => true
6+
# result => true
77

88
# Reports whether the two maps contain the same key/value pairs.
99
data "stdlib_equal_map" "bar" {
1010
map_one = { "hello" = "world" }
1111
map_two = { "foo" = "bar" }
1212
}
13-
# => false
13+
# result => false

examples/data-sources/stdlib_exp/data-source.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
data "stdlib_exp" "zero" {
33
param = 0
44
}
5-
# => 1
5+
# result => 1
66

77
# Return the base e exponential of 1.0986122
88
data "stdlib_exp" "decimal" {
99
param = 1.0986122
1010
}
11-
# => 2.9999997339956828
11+
# result => 2.9999997339956828

examples/data-sources/stdlib_flatten_map/data-source.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ data "stdlib_flatten_map" "foo" {
55
{ "foo" = "bar" }
66
]
77
}
8-
# => {"hello" = "world", "foo = "bar}
8+
# result => {"hello" = "world", "foo = "bar}

examples/data-sources/stdlib_has_key/data-source.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ data "stdlib_has_key" "foo" {
66
}
77
key = "foo"
88
}
9-
# => true
9+
# result => true
1010

1111
# Check existence of "bar" key in map:
1212
data "stdlib_has_key" "bar" {
@@ -16,4 +16,4 @@ data "stdlib_has_key" "bar" {
1616
}
1717
key = "bar"
1818
}
19-
# => false
19+
# result => false

examples/data-sources/stdlib_has_keys/data-source.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ data "stdlib_has_keys" "bar_foo" {
77
}
88
keys = ["bar", "foo"]
99
}
10-
# => true
10+
# result => true
1111

1212
# Check existence of either "bar" or "pizza" keys in map:
1313
data "stdlib_has_keys" "bar_pizza" {
@@ -18,20 +18,20 @@ data "stdlib_has_keys" "bar_pizza" {
1818
}
1919
keys = ["bar", "pizza"]
2020
}
21-
# => false
21+
# result => false
2222

2323
# Check existence of "bar" and "foo" keys in map:
2424
data "stdlib_has_keys" "bar_foo_all" {
2525
map = { "hello" = "world", "foo" = "bar", "baz" = "bat" }
2626
keys = ["bar", "foo"]
2727
all = true
2828
}
29-
# => false
29+
# result => false
3030

3131
# Check existence of "hello", "foo", and "baz" keys in map:
3232
data "stdlib_has_keys" "three_keys_all" {
3333
map = { "hello" = "world", "foo" = "bar", "baz" = "bat" }
3434
keys = ["hello", "foo", "baz"]
3535
all = true
3636
}
37-
# => true
37+
# result => true

examples/data-sources/stdlib_has_value/data-source.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ data "stdlib_has_value" "foo" {
66
}
77
value = "foo"
88
}
9-
# => false
9+
# result => false
1010

1111
# Check existence of "bar" value in map:
1212
data "stdlib_has_value" "bar" {
@@ -16,4 +16,4 @@ data "stdlib_has_value" "bar" {
1616
}
1717
value = "bar"
1818
}
19-
# => true
19+
# result => true

examples/data-sources/stdlib_has_values/data-source.tf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ data "stdlib_has_values" "foo_bar" {
77
}
88
keys = ["foo", "bar"]
99
}
10-
# => true
10+
# result => true
1111

1212
# Check existence of either "foo" or "pizza" keys in map:
1313
data "stdlib_has_values" "foo_pizza" {
@@ -18,20 +18,20 @@ data "stdlib_has_values" "foo_pizza" {
1818
}
1919
keys = ["foo", "pizza"]
2020
}
21-
# => false
21+
# result => false
2222

2323
# Check existence of "foo" and "bar" values in map:
2424
data "stdlib_has_values" "foo_bar_all" {
2525
map = { "hello" = "world", "foo" = "bar", "baz" = "bat" }
2626
values = ["foo", "bar"]
2727
all = true
2828
}
29-
# => false
29+
# result => false
3030

3131
# Check existence of "hello", "bar", and "bat" values in map:
3232
data "stdlib_has_values" "three_values_all" {
3333
map = { "hello" = "world", "foo" = "bar", "baz" = "bat" }
3434
values = ["world", "bar", "bat"]
3535
all = true
3636
}
37-
# => true
37+
# result => true

0 commit comments

Comments
 (0)