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
2121
2222** Note** : Depends on ` jq ` being installed.
2323
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+
2438## Why / Why Not
2539
2640### jq compatibility
@@ -73,17 +87,6 @@ $ lq -y '.[3].metadata' test/deploy.yaml
7387
7488The default input format is YAML and is what the binary is named for (and the most common primary usage case).
7589
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.
8790
8891### TOML Input
8992
You can’t perform that action at this time.
0 commit comments