pulumi/sdk/go/common/resource/config
Thomas Gummerer 6c1cac30b8
allow setting the type of the config value in pulumi config set (#18287)
Config values in `pulumi config set` are marshalled according to certain
rules (everything on the top level is a string), and for paths,
true/false becomes a boolean, integers not starting with a 0 become
integers and everything else becomes strings.

This leaves floats out, and someone might want to store a number or a
bool as a string instead. Add a `--type` flag to pulumi config set to
force the type. This type also applies to top level config elements.

Fixes https://github.com/pulumi/pulumi/issues/5442
2025-01-23 15:22:53 +00:00
..
testdata/repr [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
crypt.go [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
key.go Enable finding Pulumi projects created from Templates (#15056) 2024-01-24 16:47:12 +00:00
key_test.go Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
map.go allow setting the type of the config value in pulumi config set (#18287) 2025-01-23 15:22:53 +00:00
map_test.go [14573] Parse config paths strictly (#15173) 2024-01-19 10:51:27 +00:00
object.go [config] Clean up toDecryptedPropertyValue (#14562) 2023-11-16 17:55:14 +00:00
object_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
plaintext.go Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
plaintext_test.go [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
repr_test.go [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00
value.go allow setting the type of the config value in pulumi config set (#18287) 2025-01-23 15:22:53 +00:00
value_test.go [config] Clean up implementation (#13814) 2023-10-09 04:51:21 +00:00