YQ Tool: Difference between revisions

From Chorke Wiki
Jump to navigation Jump to search
(Created page with "{| | valign="top" | <syntaxhighlight lang="bash"> # ubuntu/debian cat << EXE|sudo bash PLATFORM=$(uname -s)_$(dpkg --print-architecture) YQ_BINARY=$(echo "yq_${PLATFORM}"|tr '[:upper:]' '[:lower:]') wget https://github.com/mikefarah/yq/releases/latest/download/${YQ_BINARY} -O /usr/bin/yq chmod +x /usr/bin/yq EXE </syntaxhighlight> | valign="top" | '''windows:''' 1. Press '''⊞ + R''' 2. Type in '''PowerShell''' '''run as administrator user''' 3. Press '''Ctrl + Sh...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
# ubuntu/debian
# ubuntu/debian
cat << EXE|sudo bash
cat << EXE|sudo bash
PLATFORM=$(uname -s)_$(dpkg --print-architecture)
PLATFORM=\$(uname -s)_\$(dpkg --print-architecture)
YQ_BINARY=$(echo "yq_${PLATFORM}"|tr '[:upper:]' '[:lower:]')
YQ_BINARY=\$(echo "yq_\${PLATFORM}"|tr '[:upper:]' '[:lower:]')
wget https://github.com/mikefarah/yq/releases/latest/download/${YQ_BINARY} -O /usr/bin/yq
wget https://github.com/mikefarah/yq/releases/latest/download/\${YQ_BINARY} -O /usr/bin/yq
chmod +x /usr/bin/yq
chmod +x /usr/bin/yq
EXE
EXE
Line 40: Line 40:
{|
{|
| valign="top" |
| valign="top" |
* [https://medium.com/how-tos-for-coders/https-medium-com-how-tos-for-coders-parse-json-data-using-jq-and-curl-from-command-line-5aa8a05cd79b Parse JSON data using JQ Tool]
* [https://github.com/mikefarah/yq/releases YQ » Releases]
* [https://stackoverflow.com/questions/42716734/ JSON file in-place using <code>jq</code>]
* [https://mikefarah.gitbook.io/yq YQ » Docs]
* [https://github.com/mikefarah/yq/releases YQ Tool » Releases]
* [https://github.com/mikefarah/yq YQ]
* [https://github.com/mikefarah/yq YQ Tool]
 
| valign="top" |
 
| valign="top" |
 
|-
| colspan="3" |
----
|-
| valign="top" |
* [[HTTPie]]
* [[JQ Tool]]
* [[JQ Tool]]
* [[HTTPie]]
* [[TMux]]
* [[TMux]]
* [[Wrk]]
* [[Wrk]]
| valign="top" |


| valign="top" |
| valign="top" |


|}
|}

Latest revision as of 03:48, 20 October 2024

# ubuntu/debian
cat << EXE|sudo bash
PLATFORM=\$(uname -s)_\$(dpkg --print-architecture)
YQ_BINARY=\$(echo "yq_\${PLATFORM}"|tr '[:upper:]' '[:lower:]')
wget https://github.com/mikefarah/yq/releases/latest/download/\${YQ_BINARY} -O /usr/bin/yq
chmod +x /usr/bin/yq
EXE
windows:
1. Press ⊞ + R
2. Type in PowerShell
run as administrator user
3. Press Ctrl + Shift + Enter
4. Choose Yes and Press Enter
5. choco install yq
macos:



brew doctor
brew update
brew install yq

Knowledge

yq -r '.auths."hub.chorke.org".auth' ~/.docker/config.json|base64 --decode && echo
yq -r '.auths."reg.chorke.org".auth' ~/.docker/config.json|base64 --decode && echo

References