mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-13 20:15:57 +00:00
Updated instructions w.r.t keys and values starting with dashes
This commit is contained in:
parent
238a1241d2
commit
f8c1c3c1b4
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="/assets/images/favicon.png">
|
<link rel="shortcut icon" href="/assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="/assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="/assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="/assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="/assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -108,22 +111,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
|
||||||
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -146,7 +146,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -157,20 +156,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -206,20 +203,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -357,7 +352,6 @@
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="/assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="/assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -367,20 +361,16 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="/assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:"/"}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:"/"}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
6
docs/assets/javascripts/application.39abc4af.js
Normal file
6
docs/assets/javascripts/application.39abc4af.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
docs/assets/javascripts/lunr/lunr.ja.js
Normal file
1
docs/assets/javascripts/lunr/lunr.ja.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(m){if(void 0===m)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===m.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var l="2"==m.version[0];m.ja=function(){this.pipeline.reset(),this.pipeline.add(m.ja.trimmer,m.ja.stopWordFilter,m.ja.stemmer),l?this.tokenizer=m.ja.tokenizer:(m.tokenizer&&(m.tokenizer=m.ja.tokenizer),this.tokenizerFn&&(this.tokenizerFn=m.ja.tokenizer))};var j=new m.TinySegmenter;m.ja.tokenizer=function(e){var r,t,i,n,o,s,p,a,u;if(!arguments.length||null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return l?new m.Token(e.toLowerCase()):e.toLowerCase()});for(r=(t=e.toString().toLowerCase().replace(/^\s+/,"")).length-1;0<=r;r--)if(/\S/.test(t.charAt(r))){t=t.substring(0,r+1);break}for(o=[],i=t.length,p=a=0;a<=i;a++)if(s=a-p,t.charAt(a).match(/\s/)||a==i){if(0<s)for(n=j.segment(t.slice(p,a)).filter(function(e){return!!e}),u=p,r=0;r<n.length;r++)l?o.push(new m.Token(n[r],{position:[u,n[r].length],index:o.length})):o.push(n[r]),u+=n[r].length;p=a+1}return o},m.ja.stemmer=function(e){return e},m.Pipeline.registerFunction(m.ja.stemmer,"stemmer-ja"),m.ja.wordCharacters="一二三四五六七八九十百千万億兆一-龠々〆ヵヶぁ-んァ-ヴーア-ン゙a-zA-Za-zA-Z0-90-9",m.ja.trimmer=m.trimmerSupport.generateTrimmer(m.ja.wordCharacters),m.Pipeline.registerFunction(m.ja.trimmer,"trimmer-ja"),m.ja.stopWordFilter=m.generateStopWordFilter("これ それ あれ この その あの ここ そこ あそこ こちら どこ だれ なに なん 何 私 貴方 貴方方 我々 私達 あの人 あのかた 彼女 彼 です あります おります います は が の に を で え から まで より も どの と し それで しかし".split(" ")),m.Pipeline.registerFunction(m.ja.stopWordFilter,"stopWordFilter-ja"),m.jp=m.ja,m.Pipeline.registerFunction(m.jp.stemmer,"stemmer-jp"),m.Pipeline.registerFunction(m.jp.trimmer,"trimmer-jp"),m.Pipeline.registerFunction(m.jp.stopWordFilter,"stopWordFilter-jp")}});
|
@ -1 +1 @@
|
|||||||
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(n){if(void 0===n)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===n.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var i="2"==n.version[0];n.jp=function(){this.pipeline.reset(),this.pipeline.add(n.jp.stopWordFilter,n.jp.stemmer),i?this.tokenizer=n.jp.tokenizer:(n.tokenizer&&(n.tokenizer=n.jp.tokenizer),this.tokenizerFn&&(this.tokenizerFn=n.jp.tokenizer))};var o=new n.TinySegmenter;n.jp.tokenizer=function(e){if(!arguments.length||null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return i?new n.Token(e.toLowerCase()):e.toLowerCase()});for(var r=e.toString().toLowerCase().replace(/^\s+/,""),t=r.length-1;0<=t;t--)if(/\S/.test(r.charAt(t))){r=r.substring(0,t+1);break}return o.segment(r).filter(function(e){return!!e}).map(function(e){return i?new n.Token(e):e})},n.jp.stemmer=function(e){return e},n.Pipeline.registerFunction(n.jp.stemmer,"stemmer-jp"),n.jp.wordCharacters="一二三四五六七八九十百千万億兆一-龠々〆ヵヶぁ-んァ-ヴーア-ン゙a-zA-Za-zA-Z0-90-9",n.jp.stopWordFilter=function(e){if(-1===n.jp.stopWordFilter.stopWords.indexOf(i?e.toString():e))return e},n.jp.stopWordFilter=n.generateStopWordFilter("これ それ あれ この その あの ここ そこ あそこ こちら どこ だれ なに なん 何 私 貴方 貴方方 我々 私達 あの人 あのかた 彼女 彼 です あります おります います は が の に を で え から まで より も どの と し それで しかし".split(" ")),n.Pipeline.registerFunction(n.jp.stopWordFilter,"stopWordFilter-jp")}});
|
module.exports=require("./lunr.ja");
|
1
docs/assets/javascripts/lunr/lunr.nl.js
Normal file
1
docs/assets/javascripts/lunr/lunr.nl.js
Normal file
File diff suppressed because one or more lines are too long
1
docs/assets/javascripts/lunr/lunr.th.js
Normal file
1
docs/assets/javascripts/lunr/lunr.th.js
Normal file
@ -0,0 +1 @@
|
|||||||
|
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(t){if(void 0===t)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===t.stemmerSupport)throw new Error("Lunr stemmer support is not present. Please include / require Lunr stemmer support before this script.");var i="2"==t.version[0];t.th=function(){this.pipeline.reset(),this.pipeline.add(t.th.trimmer),i?this.tokenizer=t.th.tokenizer:(t.tokenizer&&(t.tokenizer=t.th.tokenizer),this.tokenizerFn&&(this.tokenizerFn=t.th.tokenizer))},t.th.wordCharacters="[-]",t.th.trimmer=t.trimmerSupport.generateTrimmer(t.th.wordCharacters),t.Pipeline.registerFunction(t.th.trimmer,"trimmer-th");var n=t.wordcut;n.init(),t.th.tokenizer=function(e){if(!arguments.length||null==e||null==e)return[];if(Array.isArray(e))return e.map(function(e){return i?new t.Token(e):e});var r=e.toString().replace(/^\s+/,"");return n.cut(r).split("|")}}});
|
1
docs/assets/javascripts/lunr/wordcut.js
Normal file
1
docs/assets/javascripts/lunr/wordcut.js
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
docs/assets/javascripts/modernizr.74668098.js
Normal file
1
docs/assets/javascripts/modernizr.74668098.js
Normal file
File diff suppressed because one or more lines are too long
1
docs/assets/stylesheets/application-palette.224b79ff.css
Normal file
1
docs/assets/stylesheets/application-palette.224b79ff.css
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
1
docs/assets/stylesheets/application.750b69bd.css
Normal file
1
docs/assets/stylesheets/application.750b69bd.css
Normal file
File diff suppressed because one or more lines are too long
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Convert
|
||||||
Convert
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -514,7 +509,6 @@ b:
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -524,20 +518,16 @@ b:
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Create
|
||||||
Create
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -337,6 +332,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -411,6 +413,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -481,6 +490,15 @@ b.e[0].name: Howdy Partner
|
|||||||
|
|
||||||
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
||||||
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
||||||
|
<h3 id="keys-and-values-with-leading-dashes">Keys (and values) with leading dashes<a class="headerlink" href="#keys-and-values-with-leading-dashes" title="Permanent link">¶</a></h3>
|
||||||
|
<p>If a key or value has leading dashes, yq won't know that you are passing a value as opposed to a flag (and you will get a 'bad flag syntax' error).</p>
|
||||||
|
<p>To fix that, you will need to tell it to stop processing flags by adding '--' after the last flag like so:</p>
|
||||||
|
<pre><code class="bash">yq n -t -- --key --value
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Will result in</p>
|
||||||
|
<p><code>`
|
||||||
|
--key: --value</code></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -544,7 +562,6 @@ b.e[0].name: Howdy Partner
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -554,20 +571,16 @@ b.e[0].name: Howdy Partner
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Delete
|
||||||
Delete
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -353,6 +348,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -467,6 +469,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -601,6 +610,15 @@ b:
|
|||||||
|
|
||||||
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
||||||
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
||||||
|
<h3 id="keys-and-values-with-leading-dashes">Keys (and values) with leading dashes<a class="headerlink" href="#keys-and-values-with-leading-dashes" title="Permanent link">¶</a></h3>
|
||||||
|
<p>If a key or value has leading dashes, yq won't know that you are passing a value as opposed to a flag (and you will get a 'bad flag syntax' error).</p>
|
||||||
|
<p>To fix that, you will need to tell it to stop processing flags by adding '--' after the last flag like so:</p>
|
||||||
|
<pre><code class="bash">yq n -t -- --key --value
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Will result in</p>
|
||||||
|
<p><code>`
|
||||||
|
--key: --value</code></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -664,7 +682,6 @@ b:
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -674,20 +691,16 @@ b:
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="assets/images/favicon.png">
|
<link rel="shortcut icon" href="assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Install
|
||||||
Install
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -480,7 +475,6 @@ sudo apt install yq -y
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -490,20 +484,16 @@ sudo apt install yq -y
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:"."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:"."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Merge
|
||||||
Merge
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -711,7 +706,6 @@ b: dog
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -721,20 +715,16 @@ b: dog
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Prefix
|
||||||
Prefix
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -612,7 +607,6 @@ c:
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -622,20 +616,16 @@ c:
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Read
|
||||||
Read
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -324,6 +319,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -481,6 +483,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -629,6 +638,15 @@ e.g.: given a sample file of</p>
|
|||||||
|
|
||||||
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
||||||
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
||||||
|
<h3 id="keys-and-values-with-leading-dashes">Keys (and values) with leading dashes<a class="headerlink" href="#keys-and-values-with-leading-dashes" title="Permanent link">¶</a></h3>
|
||||||
|
<p>If a key or value has leading dashes, yq won't know that you are passing a value as opposed to a flag (and you will get a 'bad flag syntax' error).</p>
|
||||||
|
<p>To fix that, you will need to tell it to stop processing flags by adding '--' after the last flag like so:</p>
|
||||||
|
<pre><code class="bash">yq n -t -- --key --value
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Will result in</p>
|
||||||
|
<p><code>`
|
||||||
|
--key: --value</code></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -692,7 +710,6 @@ e.g.: given a sample file of</p>
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -702,20 +719,16 @@ e.g.: given a sample file of</p>
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
File diff suppressed because one or more lines are too long
@ -2,42 +2,42 @@
|
|||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>None</loc>
|
<loc>None</loc>
|
||||||
<lastmod>2018-11-19</lastmod>
|
<lastmod>2019-04-29</lastmod>
|
||||||
<changefreq>daily</changefreq>
|
<changefreq>daily</changefreq>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
Binary file not shown.
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,20 +32,20 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<title>Keys with dots - Yq</title>
|
<title>Niche - Yq</title>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Niche
|
||||||
Keys with dots
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -349,6 +344,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -365,10 +367,10 @@
|
|||||||
<article class="md-content__inner md-typeset">
|
<article class="md-content__inner md-typeset">
|
||||||
|
|
||||||
|
|
||||||
<a href="https://github.com/mikefarah/yq/edit/master/docs/snippets/keys_with_dots.md" title="Edit this page" class="md-icon md-content__icon"></a>
|
<a href="https://github.com/mikefarah/yq/edit/master/docs/snippets/niche.md" title="Edit this page" class="md-icon md-content__icon"></a>
|
||||||
|
|
||||||
|
|
||||||
<h1>Keys with dots</h1>
|
<h1>Niche</h1>
|
||||||
|
|
||||||
<h3 id="keys-with-dots">Keys with dots<a class="headerlink" href="#keys-with-dots" title="Permanent link">¶</a></h3>
|
<h3 id="keys-with-dots">Keys with dots<a class="headerlink" href="#keys-with-dots" title="Permanent link">¶</a></h3>
|
||||||
<p>When specifying a key that has a dot use key lookup indicator.</p>
|
<p>When specifying a key that has a dot use key lookup indicator.</p>
|
||||||
@ -384,6 +386,15 @@
|
|||||||
|
|
||||||
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
||||||
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
||||||
|
<h3 id="keys-and-values-with-leading-dashes">Keys (and values) with leading dashes<a class="headerlink" href="#keys-and-values-with-leading-dashes" title="Permanent link">¶</a></h3>
|
||||||
|
<p>If a key or value has leading dashes, yq won't know that you are passing a value as opposed to a flag (and you will get a 'bad flag syntax' error).</p>
|
||||||
|
<p>To fix that, you will need to tell it to stop processing flags by adding '--' after the last flag like so:</p>
|
||||||
|
<pre><code class="bash">yq n -t -- --key --value
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Will result in</p>
|
||||||
|
<pre><code>--key: --value
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -412,7 +423,6 @@
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -422,20 +432,16 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -108,22 +111,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Works with json
|
||||||
Works with json
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -146,7 +146,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -157,20 +156,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -206,20 +203,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -366,7 +361,6 @@
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -376,20 +370,16 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:"../.."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<!DOCTYPE html>
|
<!doctype html>
|
||||||
<html lang="en" class="no-js">
|
<html lang="en" class="no-js">
|
||||||
<head>
|
<head>
|
||||||
|
|
||||||
@ -32,7 +32,7 @@
|
|||||||
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
<meta name="lang:search.tokenizer" content="[\s\-]+">
|
||||||
|
|
||||||
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
<link rel="shortcut icon" href="../assets/images/favicon.png">
|
||||||
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-3.1.0">
|
<meta name="generator" content="mkdocs-1.0.4, mkdocs-material-4.2.0">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -40,12 +40,12 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="../assets/stylesheets/application.11e41852.css">
|
<link rel="stylesheet" href="../assets/stylesheets/application.750b69bd.css">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<script src="../assets/javascripts/modernizr.20ef595d.js"></script>
|
<script src="../assets/javascripts/modernizr.74668098.js"></script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -58,6 +58,9 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body dir="ltr">
|
<body dir="ltr">
|
||||||
@ -112,22 +115,19 @@
|
|||||||
<div class="md-flex__cell md-flex__cell--stretch">
|
<div class="md-flex__cell md-flex__cell--stretch">
|
||||||
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
<div class="md-flex__ellipsis md-header-nav__title" data-md-component="title">
|
||||||
|
|
||||||
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Yq
|
||||||
Yq
|
</span>
|
||||||
</span>
|
<span class="md-header-nav__topic">
|
||||||
<span class="md-header-nav__topic">
|
Write/Update
|
||||||
Write/Update
|
</span>
|
||||||
</span>
|
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="md-flex__cell md-flex__cell--shrink">
|
<div class="md-flex__cell md-flex__cell--shrink">
|
||||||
|
|
||||||
|
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
||||||
|
|
||||||
<label class="md-icon md-icon--search md-header-nav__button" for="__search"></label>
|
|
||||||
|
|
||||||
<div class="md-search" data-md-component="search" role="dialog">
|
<div class="md-search" data-md-component="search" role="dialog">
|
||||||
<label class="md-search__overlay" for="__search"></label>
|
<label class="md-search__overlay" for="__search"></label>
|
||||||
<div class="md-search__inner" role="search">
|
<div class="md-search__inner" role="search">
|
||||||
@ -150,7 +150,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,20 +160,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -210,20 +207,18 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
||||||
<a href="https://github.com/mikefarah/yq/" title="Go to repository" class="md-source" data-md-source="github">
|
|
||||||
|
<div class="md-source__icon">
|
||||||
<div class="md-source__icon">
|
<svg viewBox="0 0 24 24" width="24" height="24">
|
||||||
<svg viewBox="0 0 24 24" width="24" height="24">
|
<use xlink:href="#__github" width="24" height="24"></use>
|
||||||
<use xlink:href="#__github" width="24" height="24"></use>
|
</svg>
|
||||||
</svg>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="md-source__repository">
|
|
||||||
mikefarah/yq
|
|
||||||
</div>
|
</div>
|
||||||
</a>
|
|
||||||
|
<div class="md-source__repository">
|
||||||
|
mikefarah/yq
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="md-nav__list" data-md-scrollfix>
|
<ul class="md-nav__list" data-md-scrollfix>
|
||||||
@ -350,6 +345,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -509,6 +511,13 @@
|
|||||||
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li class="md-nav__item">
|
||||||
|
<a href="#keys-and-values-with-leading-dashes" title="Keys (and values) with leading dashes" class="md-nav__link">
|
||||||
|
Keys (and values) with leading dashes
|
||||||
|
</a>
|
||||||
|
|
||||||
|
</li>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -697,6 +706,15 @@ b.e[0].name: Howdy Partner
|
|||||||
|
|
||||||
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
<p>Any valid yaml key can be specified as part of a key lookup.</p>
|
||||||
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
<p>Note that the path is in quotes to avoid the square brackets being interpreted by your shell.</p>
|
||||||
|
<h3 id="keys-and-values-with-leading-dashes">Keys (and values) with leading dashes<a class="headerlink" href="#keys-and-values-with-leading-dashes" title="Permanent link">¶</a></h3>
|
||||||
|
<p>If a key or value has leading dashes, yq won't know that you are passing a value as opposed to a flag (and you will get a 'bad flag syntax' error).</p>
|
||||||
|
<p>To fix that, you will need to tell it to stop processing flags by adding '--' after the last flag like so:</p>
|
||||||
|
<pre><code class="bash">yq n -t -- --key --value
|
||||||
|
</code></pre>
|
||||||
|
|
||||||
|
<p>Will result in</p>
|
||||||
|
<p><code>`
|
||||||
|
--key: --value</code></p>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -760,7 +778,6 @@ b.e[0].name: Howdy Partner
|
|||||||
Material for MkDocs</a>
|
Material for MkDocs</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<div class="md-footer-social">
|
<div class="md-footer-social">
|
||||||
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
<link rel="stylesheet" href="../assets/fonts/font-awesome.css">
|
||||||
|
|
||||||
@ -770,20 +787,16 @@ b.e[0].name: Howdy Partner
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="../assets/javascripts/application.9e1f3b71.js"></script>
|
<script src="../assets/javascripts/application.39abc4af.js"></script>
|
||||||
|
|
||||||
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
<script>app.initialize({version:"1.0.4",url:{base:".."}})</script>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
@ -41,4 +41,4 @@ You can also pipe the instructions in:
|
|||||||
cat create_instructions.yaml | yq n -s -
|
cat create_instructions.yaml | yq n -s -
|
||||||
```
|
```
|
||||||
|
|
||||||
{!snippets/keys_with_dots.md!}
|
{!snippets/niche.md!}
|
||||||
|
@ -107,4 +107,4 @@ b:
|
|||||||
|
|
||||||
Note that '*' is in quotes to avoid being interpreted by your shell.
|
Note that '*' is in quotes to avoid being interpreted by your shell.
|
||||||
|
|
||||||
{!snippets/keys_with_dots.md!}
|
{!snippets/niche.md!}
|
||||||
|
@ -122,4 +122,4 @@ will output:
|
|||||||
```
|
```
|
||||||
Note that the path is in quotes to avoid the square brackets being interpreted by your shell.
|
Note that the path is in quotes to avoid the square brackets being interpreted by your shell.
|
||||||
|
|
||||||
{!snippets/keys_with_dots.md!}
|
{!snippets/niche.md!}
|
||||||
|
@ -1,19 +0,0 @@
|
|||||||
### Keys with dots
|
|
||||||
When specifying a key that has a dot use key lookup indicator.
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
b:
|
|
||||||
foo.bar: 7
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
yaml r sample.yaml 'b[foo.bar]'
|
|
||||||
```
|
|
||||||
|
|
||||||
```bash
|
|
||||||
yaml w sample.yaml 'b[foo.bar]' 9
|
|
||||||
```
|
|
||||||
|
|
||||||
Any valid yaml key can be specified as part of a key lookup.
|
|
||||||
|
|
||||||
Note that the path is in quotes to avoid the square brackets being interpreted by your shell.
|
|
35
mkdocs/snippets/niche.md
Normal file
35
mkdocs/snippets/niche.md
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
### Keys with dots
|
||||||
|
When specifying a key that has a dot use key lookup indicator.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
b:
|
||||||
|
foo.bar: 7
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yaml r sample.yaml 'b[foo.bar]'
|
||||||
|
```
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yaml w sample.yaml 'b[foo.bar]' 9
|
||||||
|
```
|
||||||
|
|
||||||
|
Any valid yaml key can be specified as part of a key lookup.
|
||||||
|
|
||||||
|
Note that the path is in quotes to avoid the square brackets being interpreted by your shell.
|
||||||
|
|
||||||
|
### Keys (and values) with leading dashes
|
||||||
|
If a key or value has leading dashes, yq won't know that you are passing a value as opposed to a flag (and you will get a 'bad flag syntax' error).
|
||||||
|
|
||||||
|
To fix that, you will need to tell it to stop processing flags by adding '--' after the last flag like so:
|
||||||
|
|
||||||
|
|
||||||
|
```bash
|
||||||
|
yq n -t -- --key --value
|
||||||
|
```
|
||||||
|
|
||||||
|
Will result in
|
||||||
|
|
||||||
|
```
|
||||||
|
--key: --value
|
||||||
|
```
|
@ -169,4 +169,4 @@ my:
|
|||||||
path: -3
|
path: -3
|
||||||
```
|
```
|
||||||
|
|
||||||
{!snippets/keys_with_dots.md!}
|
{!snippets/niche.md!}
|
||||||
|
2
scripts/doctools.sh
Normal file → Executable file
2
scripts/doctools.sh
Normal file → Executable file
@ -1,4 +1,4 @@
|
|||||||
#!/bin.bash
|
#!/bin/bash
|
||||||
|
|
||||||
brew install mkdocs libyaml
|
brew install mkdocs libyaml
|
||||||
pip3 install markdown-include
|
pip3 install markdown-include
|
||||||
|
6
yq.go
6
yq.go
@ -95,6 +95,7 @@ yq r - a.b.c (reads from stdin)
|
|||||||
yq r things.yaml a.*.c
|
yq r things.yaml a.*.c
|
||||||
yq r -d1 things.yaml a.array[0].blah
|
yq r -d1 things.yaml a.array[0].blah
|
||||||
yq r things.yaml a.array[*].blah
|
yq r things.yaml a.array[*].blah
|
||||||
|
yq r -- things.yaml --key-starting-with-dashes
|
||||||
`,
|
`,
|
||||||
Long: "Outputs the value of the given path in the yaml file to STDOUT",
|
Long: "Outputs the value of the given path in the yaml file to STDOUT",
|
||||||
RunE: readProperty,
|
RunE: readProperty,
|
||||||
@ -111,7 +112,7 @@ func createWriteCmd() *cobra.Command {
|
|||||||
Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue",
|
Short: "yq w [--inplace/-i] [--script/-s script_file] [--doc/-d index] sample.yaml a.b.c newValue",
|
||||||
Example: `
|
Example: `
|
||||||
yq write things.yaml a.b.c cat
|
yq write things.yaml a.b.c cat
|
||||||
yq write --inplace things.yaml a.b.c cat
|
yq write --inplace -- things.yaml a.b.c --cat
|
||||||
yq w -i things.yaml a.b.c cat
|
yq w -i things.yaml a.b.c cat
|
||||||
yq w --script update_script.yaml things.yaml
|
yq w --script update_script.yaml things.yaml
|
||||||
yq w -i -s update_script.yaml things.yaml
|
yq w -i -s update_script.yaml things.yaml
|
||||||
@ -147,6 +148,7 @@ func createPrefixCmd() *cobra.Command {
|
|||||||
Example: `
|
Example: `
|
||||||
yq prefix things.yaml a.b.c
|
yq prefix things.yaml a.b.c
|
||||||
yq prefix --inplace things.yaml a.b.c
|
yq prefix --inplace things.yaml a.b.c
|
||||||
|
yq prefix --inplace -- things.yaml --key-starting-with-dash
|
||||||
yq p -i things.yaml a.b.c
|
yq p -i things.yaml a.b.c
|
||||||
yq p --doc 2 things.yaml a.b.d
|
yq p --doc 2 things.yaml a.b.d
|
||||||
yq p -d2 things.yaml a.b.d
|
yq p -d2 things.yaml a.b.d
|
||||||
@ -169,6 +171,7 @@ func createDeleteCmd() *cobra.Command {
|
|||||||
Example: `
|
Example: `
|
||||||
yq delete things.yaml a.b.c
|
yq delete things.yaml a.b.c
|
||||||
yq delete --inplace things.yaml a.b.c
|
yq delete --inplace things.yaml a.b.c
|
||||||
|
yq delete --inplace -- things.yaml --key-starting-with-dash
|
||||||
yq d -i things.yaml a.b.c
|
yq d -i things.yaml a.b.c
|
||||||
yq d things.yaml a.b.c
|
yq d things.yaml a.b.c
|
||||||
`,
|
`,
|
||||||
@ -190,6 +193,7 @@ func createNewCmd() *cobra.Command {
|
|||||||
Example: `
|
Example: `
|
||||||
yq new a.b.c cat
|
yq new a.b.c cat
|
||||||
yq n a.b.c cat
|
yq n a.b.c cat
|
||||||
|
yq n -- --key-starting-with-dash cat
|
||||||
yq n --script create_script.yaml
|
yq n --script create_script.yaml
|
||||||
`,
|
`,
|
||||||
Long: `Creates a new yaml w.r.t the given path and value.
|
Long: `Creates a new yaml w.r.t the given path and value.
|
||||||
|
Loading…
Reference in New Issue
Block a user