We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Discussion? In yaml there is default syntax for array list:
key1: - value1 - value2 - value3 - value4 - value5
and square brackets syntax:
key1: [value1,value2,value3,value4,value5]
Describe the bug Dasel doesn't handle square brackets syntax for array list in yaml.
To Reproduce
$> cat <<EOF | tee tmp.yaml key1: [value1,value2,value3,value4,value5] key2: value6 EOF $> dasel put -f tmp.yaml -r yaml -w yaml -v "value7" 'key2' $> cat tmp.yaml key1: - value1 - value2 - value3 - value4 - value5 key2: value7
Expected behavior The output should be:
key1: [value1,value2,value3,value4,value5] key2: value7
Desktop (please complete the following information):
Additional context Square brackets syntax is used in docker-compose.yml files.
docker-compose.yml
The text was updated successfully, but these errors were encountered:
Dasel uses the following package for yaml parsing: https://github.com/go-yaml/yaml
I can do some digging to see if there is a workaround for this.
Sorry, something went wrong.
I believe I have fixed this here: #289
The PR is still a WIP but a fix should be coming soon.
It looks like the issue is still present.
No branches or pull requests
Discussion?
In yaml there is default syntax for array list:
and square brackets syntax:
Describe the bug
Dasel doesn't handle square brackets syntax for array list in yaml.
To Reproduce
Expected behavior
The output should be:
Desktop (please complete the following information):
Additional context
Square brackets syntax is used in
docker-compose.yml
files.The text was updated successfully, but these errors were encountered: