![]() header-preprocess Slurp any header comments and separators before processing expression. Extract will pull out the yaml content, process will run the expression against the yaml content, leaving the remaining data intact f, -front-matter string (extract|process) first input as yaml front-matter. e, -exit-status set exit status if there are no matches or null or false is returned Shell-completion Generate completion script Yq -i '.stuff = "foo"' myfile.yml # update myfile.yml inplaceĬompletion Generate the autocompletion script for the specified shellĮval (default) Apply the expression to each document in each yaml file in sequenceĮval-all Loads _all_ yaml documents of _all_ yaml files and runs expression once Yq '.stuff' < myfile.yml # outputs the data at the "stuff" node from "myfile.yml" # yq defaults to 'eval' command if no command is specified. Github Action to use in your automated pipeline (thanks out the documentation for more detailed and advanced usage.Reduce to merge multiple files or sum an array or other fancy things.General shell completion scripts (bash/zsh/fish/powershell).Keeps yaml formatting and comments when updating (though there are issues with whitespace).Complex expressions to select and update.Manipulate yaml comments, styling, tags and anchors and aliases.Date/Time manipulation and formatting with TZ.Supports yaml front matter blocks (e.g.Fully supports multi document yaml files.Uses similar syntax as jq but works with YAML, JSON and XML files.Written in portable go, so you can download a lovely dependency free binary.Detailed documentation with many examples.Enable edge/community repo by adding $MIRROR/alpine/edge/community to /etc/apk/repositories. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |