You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, thank you for the wonderful project. I am experimenting with yq and it works well, even respecting comments, a feature I have not found in other sorting programs.
One question that I have is how to use yq to sort only a single list in 1 key. To be specific, I am trying to sort the dependencies in an environment.yaml file automatically but the currently documented method of yq 'sort_keys(..)' environment.yaml moves other keys as well, which is undesirable. Is there any way to sort only the dependencies list? Thank you in advance for any help.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, thank you for the wonderful project. I am experimenting with
yq
and it works well, even respecting comments, a feature I have not found in other sorting programs.One question that I have is how to use
yq
to sort only a single list in 1 key. To be specific, I am trying to sort thedependencies
in anenvironment.yaml
file automatically but the currently documented method ofyq 'sort_keys(..)' environment.yaml
moves other keys as well, which is undesirable. Is there any way to sort only thedependencies
list? Thank you in advance for any help.Beta Was this translation helpful? Give feedback.
All reactions