Commit Graph

100 Commits (ba7679b6791a306a73062ddd5a00359452e152fc)

Author SHA1 Message Date
Martin Atkins 39e609d5fd vendor: switch to HCL 2.0 in the HCL repository
7 years ago
Martin Atkins f84ab99b7d lang/funcs: cidrsubnets function
7 years ago
Jeet Parekh bcc69c05bb lang/funcs: parseint function
7 years ago
Pam Selle f9ebae749c
Merge pull request #22707 from vsimon/spell
7 years ago
Vicken Simonian 853a0e0677 docs: Minor spelling and typo fixes
7 years ago
Brian Flad 19cf34114f
lang/funcs: Switch fileset() function glob implementation to github.com/bmatcuk/doublestar to support additional glob patterns
7 years ago
Brian Flad 769f626a0e
lang/funcs: Remove homedir.Expand() and refactor path trimming with filepath.Rel() in fileset() function
7 years ago
Brian Flad 820b79d91d
lang/funcs: Clarification update to MakeFileSetFunc comment for filepath.ToSlash usage
7 years ago
Brian Flad af7f6ef441
lang/funcs: Update fileset() function to include path as separate first argument, automatically trim the path argument from results, and ensure results are always canonical with forward slash path separators
7 years ago
Brian Flad d48d9ed766
lang/funcs: Add fileset function
7 years ago
Alex Pilon e2eb70b737
remove satori/go.uuid in favor of google/uuid
7 years ago
Kristin Laemmert 2b14a6b332
lang/funcs: lookup() can work with maps of lists, maps and objects (#22269)
7 years ago
Radek Simko 5c30bafee0
Merge pull request #22119 from hashicorp/b-chunklist-empty-list
7 years ago
Radek Simko 736fda1613
lang/funcs: Pass through empty list in chunklist
7 years ago
Saverio Miroddi 983af7a183 Allow null values in Compact function
7 years ago
Andreas Sommer 042aead714 lang/funcs: add "abspath" function (#21409)
7 years ago
Paul Tyng ebea080aca Add missing bool case
7 years ago
Pam Selle 1255ad6722 Don't allow nulls in calls to merge
7 years ago
Lars Eric Scheidler aa07806bfc lang/funcs: New "uuidv5" function
7 years ago
Kristin Laemmert c163ba71db simplify
7 years ago
Kristin Laemmert 30a924e162 lang/funcs: `matchkeys` - unify type for keys and searchset
7 years ago
Kristin Laemmert f2a14d7c18 lang/funcs: fix error when `matchkeys` encountered a variable
7 years ago
Martin Atkins 55794eb658 lang/funcs: Don't panic when distinct called with empty list
7 years ago
Martin Atkins 742deca3e9 lang/funcs: Short-circuit if start or end index is unknown
7 years ago
Kristin Laemmert b1d0b1383f
lang/funcs: remove sethaselement function and documentation (#21164)
7 years ago
James Bardin 3ab496d4b1 allow sets and tuples in contains function
7 years ago
James Bardin 19bddee11b more precise types handling in coalescelist
7 years ago
James Bardin 359f057a16 allow chunklist to handle unknowns
7 years ago
James Bardin 93ef015336 more precise type handling in flatten
7 years ago
James Bardin 81e04c3050 more precise type handling in slice
7 years ago
Kristin Laemmert 8520f4e4a5
* lang/funcs/flatten: accept sets and tuples, return tuples
7 years ago
Martin Atkins 6adcc7ab73 vendor: go get github.com/zclconf/go-cty@master
7 years ago
Kristin Laemmert 394cf7f25e
lang/funcs: add acc tests for functions (#21112)
7 years ago
Kristin Laemmert d4669246c7
funcs/coalesce: return the first non-null, non-empty-string element from a sequence (#21002)
7 years ago
Martin Atkins 096b1bb87b lang/funcs: Port the "reverse" function from the old functions set
7 years ago
Martin Atkins 2b1e650df2 lang/funcs: Fix out-of-bounds ArgError in templatefile function
7 years ago
Brian Flad 398fe8652d
config: Mention other file hashing functions when file() detects unsupported contents
7 years ago
Brian Flad 81bdaa8c38
lang/funcs: Fix filebase64sha256 function hashing algorithm
7 years ago
Martin Atkins f8a6f66be4 lang/funcs: Fix panic in "join" when an element is null
7 years ago
Martin Atkins 954d38e870 lang: New file-hashing functions
7 years ago
Martin Atkins ecaaa91da9 lang/funcs: Factor out the various hash function implementations
7 years ago
Martin Atkins 2f8f7d6f4d lang/funcs: Type conversion functions
7 years ago
Martin Atkins edb5f82de1 lang/funcs: Convert the "setproduct" function to the new approach
7 years ago
Martin Atkins c753df6a93 lang/funcs: templatefile function
7 years ago
Martin Atkins 30497bbfb7 lang/funcs: zipmap accepts tuple of values and produces object
7 years ago
Martin Atkins ecc42b838c lang/funcs: Fix crash and improve precision of keys/values functions
7 years ago
Martin Atkins 8c01cf7293 lang/funcs: Fix broken test for lookup function
7 years ago
Martin Atkins 8f578c365f lang/funcs: Permit object types in the "length" function
7 years ago
Radek Simko b41cda7d7a
Return cty.DynamicPseudoType instead
7 years ago
Radek Simko 4856d81300
lang: Fix crash in lookup function
8 years ago