Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

funcs: Generate function signatures for Terraform v1.5 #213

Merged
merged 2 commits into from
May 23, 2023

Conversation

radeksimko
Copy link
Member

We can merge this when the release of v1.5 is imminent or when we're certain that these signatures won't change.

10c10
< func v1_4_0_Functions() map[string]schema.FunctionSignature {
---
> func v1_5_0_Functions() map[string]schema.FunctionSignature {
739a740,743
> 		},
> 		"plantimestamp": {
> 			ReturnType:  cty.String,
> 			Description: "`plantimestamp` returns a UTC timestamp string in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, fixed to a constant time representing the time of the plan.",
991a996,1009
> 		},
> 		"strcontains": {
> 			Params: []function.Parameter{
> 				{
> 					Name: "str",
> 					Type: cty.String,
> 				},
> 				{
> 					Name: "substr",
> 					Type: cty.String,
> 				},
> 			},
> 			ReturnType:  cty.Bool,
> 			Description: "`strcontains` takes two values: a string to check and an expected substring. The function returns true if the string has the substring contained within it.",

@radeksimko radeksimko marked this pull request as ready for review May 16, 2023 00:47
@radeksimko radeksimko requested a review from a team as a code owner May 16, 2023 00:47
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks for tweaking the script to work with pre-releases!

@radeksimko radeksimko merged commit f11f12c into main May 23, 2023
@radeksimko radeksimko deleted the f-func-signatures-v1.5 branch May 23, 2023 09:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants