mirror of
https://github.com/mikefarah/yq.git
synced 2024-12-19 20:19:04 +00:00
Version bump
This commit is contained in:
parent
9c8253b582
commit
102e7e7ab0
29
README.md
29
README.md
@ -176,6 +176,7 @@ Supported by @rmescandon (https://launchpad.net/~rmescandon/+archive/ubuntu/yq)
|
|||||||
- Written in portable go, so you can download a lovely dependency free binary
|
- Written in portable go, so you can download a lovely dependency free binary
|
||||||
- Uses similar syntax as `jq` but works with YAML and JSON files
|
- Uses similar syntax as `jq` but works with YAML and JSON files
|
||||||
- Fully supports multi document yaml files
|
- Fully supports multi document yaml files
|
||||||
|
- Supports yaml [front matter](https://mikefarah.gitbook.io/yq/usage/front-matter) blocks (e.g. jekyll/assemble)
|
||||||
- Colorized yaml output
|
- Colorized yaml output
|
||||||
- [Deeply traverse yaml](https://mikefarah.gitbook.io/yq/operators/traverse-read)
|
- [Deeply traverse yaml](https://mikefarah.gitbook.io/yq/operators/traverse-read)
|
||||||
- [Sort yaml by keys](https://mikefarah.gitbook.io/yq/operators/sort-keys)
|
- [Sort yaml by keys](https://mikefarah.gitbook.io/yq/operators/sort-keys)
|
||||||
@ -199,24 +200,26 @@ Usage:
|
|||||||
yq [command]
|
yq [command]
|
||||||
|
|
||||||
Available Commands:
|
Available Commands:
|
||||||
eval Apply expression to each document in each yaml file given in sequence
|
eval Apply the expression to each document in each yaml file in sequence
|
||||||
eval-all Loads _all_ yaml documents of _all_ yaml files and runs expression once
|
eval-all Loads _all_ yaml documents of _all_ yaml files and runs expression once
|
||||||
help Help about any command
|
help Help about any command
|
||||||
shell-completion Generate completion script
|
shell-completion Generate completion script
|
||||||
|
|
||||||
Flags:
|
Flags:
|
||||||
-C, --colors force print with colors
|
-C, --colors force print with colors
|
||||||
-e, --exit-status set exit status if there are no matches or null or false is returned
|
-e, --exit-status set exit status if there are no matches or null or false is returned
|
||||||
-h, --help help for yq
|
-f, --front-matter string (extract|process) first input as yaml front-matter. Extract will pull out the yaml content, process will run the expression against the yaml content, leaving the remaining data intact
|
||||||
-I, --indent int sets indent level for output (default 2)
|
-h, --help help for yq
|
||||||
-i, --inplace update the yaml file inplace of first yaml file given.
|
-I, --indent int sets indent level for output (default 2)
|
||||||
-M, --no-colors force print with no colors
|
-i, --inplace update the yaml file inplace of first yaml file given.
|
||||||
-N, --no-doc Don't print document separators (---)
|
-M, --no-colors force print with no colors
|
||||||
-n, --null-input Don't read input, simply evaluate the expression given. Useful for creating yaml docs from scratch.
|
-N, --no-doc Don't print document separators (---)
|
||||||
-P, --prettyPrint pretty print, shorthand for '... style = ""'
|
-n, --null-input Don't read input, simply evaluate the expression given. Useful for creating yaml docs from scratch.
|
||||||
-j, --tojson output as json. Set indent to 0 to print json in one line.
|
-P, --prettyPrint pretty print, shorthand for '... style = ""'
|
||||||
-v, --verbose verbose mode
|
-j, --tojson output as json. Set indent to 0 to print json in one line.
|
||||||
-V, --version Print version information and quit
|
--unwrapScalar unwrap scalar, print the value with no quotes, colors or comments (default true)
|
||||||
|
-v, --verbose verbose mode
|
||||||
|
-V, --version Print version information and quit
|
||||||
|
|
||||||
Use "yq [command] --help" for more information about a command.
|
Use "yq [command] --help" for more information about a command.
|
||||||
```
|
```
|
||||||
|
@ -54,7 +54,7 @@ See https://mikefarah.gitbook.io/yq/ for detailed documentation and examples.`,
|
|||||||
|
|
||||||
rootCmd.PersistentFlags().BoolVarP(&forceColor, "colors", "C", false, "force print with colors")
|
rootCmd.PersistentFlags().BoolVarP(&forceColor, "colors", "C", false, "force print with colors")
|
||||||
rootCmd.PersistentFlags().BoolVarP(&forceNoColor, "no-colors", "M", false, "force print with no colors")
|
rootCmd.PersistentFlags().BoolVarP(&forceNoColor, "no-colors", "M", false, "force print with no colors")
|
||||||
rootCmd.PersistentFlags().StringVarP(&frontMatter, "front-matter", "f", "", "(extract|process) first input as yaml front-matter. Extract will pull out the yaml content, process will run the expression against the yaml content, leaving the remaining data in-tact")
|
rootCmd.PersistentFlags().StringVarP(&frontMatter, "front-matter", "f", "", "(extract|process) first input as yaml front-matter. Extract will pull out the yaml content, process will run the expression against the yaml content, leaving the remaining data intact")
|
||||||
rootCmd.AddCommand(
|
rootCmd.AddCommand(
|
||||||
createEvaluateSequenceCommand(),
|
createEvaluateSequenceCommand(),
|
||||||
createEvaluateAllCommand(),
|
createEvaluateAllCommand(),
|
||||||
|
@ -11,7 +11,7 @@ var (
|
|||||||
GitDescribe string
|
GitDescribe string
|
||||||
|
|
||||||
// Version is main version number that is being run at the moment.
|
// Version is main version number that is being run at the moment.
|
||||||
Version = "4.10.0"
|
Version = "4.11.0"
|
||||||
|
|
||||||
// VersionPrerelease is a pre-release marker for the version. If this is "" (empty string)
|
// VersionPrerelease is a pre-release marker for the version. If this is "" (empty string)
|
||||||
// then it means that it is a final release. Otherwise, this is a pre-release
|
// then it means that it is a final release. Otherwise, this is a pre-release
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
a: fruit
|
a: apple
|
||||||
b: banana
|
b: bannana
|
||||||
---
|
---
|
||||||
content: cool
|
<h1>I like {{a}} and {{b}} </h1>
|
@ -1,4 +1,4 @@
|
|||||||
FROM mikefarah/yq:4.10.0
|
FROM mikefarah/yq:4.11.0
|
||||||
|
|
||||||
COPY entrypoint.sh /entrypoint.sh
|
COPY entrypoint.sh /entrypoint.sh
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: yq
|
name: yq
|
||||||
version: '4.10.0'
|
version: '4.11.0'
|
||||||
summary: A lightweight and portable command-line YAML processor
|
summary: A lightweight and portable command-line YAML processor
|
||||||
description: |
|
description: |
|
||||||
The aim of the project is to be the jq or sed of yaml files.
|
The aim of the project is to be the jq or sed of yaml files.
|
||||||
|
Loading…
Reference in New Issue
Block a user