terraform icon indicating copy to clipboard operation
terraform copied to clipboard

Add `directoryexists` and `directoryset` functions

Open bryanhonof opened this issue 1 year ago • 3 comments
trafficstars

Fixes hashicorp/terraform#34694 Ref hashicorp/terraform#33394 Ref hashicorp/terraform#25316

Target Release

1.8.x

Draft CHANGELOG entry

NEW FEATURES

  • A new function directoryexists got implemented
  • A new function directoryset got implemented

bryanhonof avatar Feb 17 '24 16:02 bryanhonof

📄 Content Checks

Updated: Sat, 17 Feb 2024 16:20:50 GMT

Found 2 error(s)

docs/language/functions/directoryexists.mdx

Position Description Rule
1:1-1:1 This file is not present in the nav data file at data/language-nav-data.json. Either add a path that maps to this file in the nav data or remove the file. If you want the page to exist but not be linked in the navigation, add a hidden property to the associated nav node. no-unlinked-pages

docs/language/functions/directoryset.mdx

Position Description Rule
1:1-1:1 This file is not present in the nav data file at data/language-nav-data.json. Either add a path that maps to this file in the nav data or remove the file. If you want the page to exist but not be linked in the navigation, add a hidden property to the associated nav node. no-unlinked-pages

Not sure what I'm doing wrong for the content checks test to fail still.

bryanhonof avatar Feb 17 '24 16:02 bryanhonof

Thanks for this submission! I will bring it up in triage to see if we will consider it for review. We may want to include these as built-ins given their mirrored file versions, or we may ask for these to be built as provider functions. Thanks again!

crw avatar Feb 20 '24 19:02 crw