-
Given the following YAML example:
Running
Running the same command gives me |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hey @paradajz - This isn't a bug. Since you are referencing a YAML file the input + output is being parsed/formatted as YAML.
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 These are equivalent for this use-case and will cause the output to be $ dasel -n -f demo.yml --plain analog.type
4067 |
Beta Was this translation helpful? Give feedback.
Hey @paradajz - This isn't a bug.
Since you are referencing a YAML file the input + output is being parsed/formatted as YAML.
"native"
is a stringnative
is a string"4067"
is a string4067
is an intIn 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.These are equivalent for this use-case and will cause the output to be
native
and4067
without quotes.