Repository navigation
Can't select a key with dashes from a toml file #507
Closed
bhechinger
started this conversation in
General
Replies: 2 comments
|
Hey there, Thanks for the question. The dash is being treated as a subtract operation - you can use the get function to do this: echo 'some-key = "foo"' | dasel -i toml 'get("some-key")'
'foo' |
0 replies
|
Perfect, thanks so much Tom! |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
So I've been struggling with this all morning. I'm trying to update values in a toml file, but if they contain dashes it doesn't work and I can't figure out what to do.
I'm using the docker container with the latest tag, which looks like v3.2.1 is the version of dasel I'm using.
If I wrap the key in double quotes it just returns the key, not the value.
How do I access (and set) this key?
All reactions