We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
Given the following YAML example:
analog: type: "native"
Running dasel -n -f demo.yml analog.type gives me native. No quotes. However, if type is something like this:
dasel -n -f demo.yml analog.type
native
analog: type: "4067"
Running the same command gives me "4067". Notice the quotes in output. Is this a bug or am I missing something here?
"4067"
The text was updated successfully, but these errors were encountered:
Hey @paradajz - This isn't a bug.
Since you are referencing a YAML file the input + output is being parsed/formatted as YAML.
"native"
4067
In order for dasel to output 4067 as a string it must be surrounded by quotes.
If you do not want the output to be formatted as yaml you can use the -w - flag or --plain flag.
-w -
--plain
These are equivalent for this use-case and will cause the output to be native and 4067 without quotes.
$ dasel -n -f demo.yml --plain analog.type 4067
Sorry, something went wrong.
No branches or pull requests
Given the following YAML example:
Running
dasel -n -f demo.yml analog.type
gives menative
. No quotes. However, if type is something like this:Running the same command gives me
"4067"
. Notice the quotes in output. Is this a bug or am I missing something here?The text was updated successfully, but these errors were encountered: