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
Describe the bug When you specify a negative list index, for example "yr r data1.yaml foo[-1]", the program crashes with a stack trace
Input Yaml data1.yml:
foo: - bar: baz
Command The command you ran:
yq r data1.yaml foo[-1]
Actual behavior
runtime error with stack trace
Expected behavior
Print an error message OR implement new feature like "-1 means last item of the list"
The text was updated successfully, but these errors were encountered:
Ooh I like negative indexes for going backwards, that would be cool.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
When you specify a negative list index, for example "yr r data1.yaml foo[-1]", the program crashes with a stack trace
Input Yaml
data1.yml:
Command
The command you ran:
Actual behavior
runtime error with stack trace
Expected behavior
Print an error message
OR
implement new feature like "-1 means last item of the list"
The text was updated successfully, but these errors were encountered: