File tree Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Expand file tree Collapse file tree 1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,20 @@ cargo binstall lq
21
21
22
22
** Note** : Depends on ` jq ` being installed.
23
23
24
+ ### lq as yq
25
+
26
+ Because yaml is the default input language, you can use it as your top level ` yq ` executable with a symlink or alias:
27
+
28
+ ``` sh
29
+ # globally make yq be lq
30
+ ln -s $( which lq) /usr/local/bin/yq
31
+
32
+ # alias yq to lq in shell environment only
33
+ alias yq=lq
34
+ ```
35
+
36
+ This should be compatible with ` python-yq ` , but it has some differences with the go yq.
37
+
24
38
## Why / Why Not
25
39
26
40
### jq compatibility
@@ -73,17 +87,6 @@ $ lq -y '.[3].metadata' test/deploy.yaml
73
87
74
88
The default input format is YAML and is what the binary is named for (and the most common primary usage case).
75
89
76
- If you want to use it as the top level ` yq ` executable you can either symlink or alias:
77
-
78
- ``` sh
79
- # globally make yq be lq
80
- ln -s $( which lq) /usr/local/bin/yq
81
-
82
- # alias yq to lq in shell environment only
83
- alias yq=lq
84
- ```
85
-
86
- This should be compatible with ` python-yq ` , but it has some differences with the go yq.
87
90
88
91
### TOML Input
89
92
You can’t perform that action at this time.
0 commit comments