website: Update first ttyshot to avoid deprecated "explode".

This fixes #1101.
This commit is contained in:
Qi Xiao 2020-08-16 21:24:15 +01:00
parent 9b2b33b429
commit 497d987c68

View File

@ -1,5 +1,5 @@
~&gt; <span class="sgr-32">curl</span><span class="sgr-"> https://api.github.com/repos/elves/elvish/issues </span><span class="sgr-32">|</span>
<span class="sgr-32">from-json</span><span class="sgr-"> </span><span class="sgr-32">|</span><span class="sgr-"> </span><span class="sgr-32">explode</span><span class="sgr-"> <span class="sgr-1">(</span><span class="sgr-32">all</span><span class="sgr-1">)</span> </span><span class="sgr-32">|</span>
<span class="sgr-32">from-json</span><span class="sgr-"> </span><span class="sgr-32">|</span><span class="sgr-"> </span><span class="sgr-32">all</span><span class="sgr-"> <span class="sgr-1">(</span><span class="sgr-32">one</span><span class="sgr-1">)</span> </span><span class="sgr-32">|</span>
<span class="sgr-32">each</span><span class="sgr-"> </span><span class="sgr-1">[</span><span class="sgr-">issue</span><span class="sgr-1">]{</span><span class="sgr-"> </span><span class="sgr-32">echo</span><span class="sgr-"> </span><span class="sgr-35">$issue</span><span class="sgr-1">[</span><span class="sgr-">number</span><span class="sgr-1">]</span><span class="sgr-">: </span><span class="sgr-35">$issue</span><span class="sgr-1">[</span><span class="sgr-">title</span><span class="sgr-1">]</span><span class="sgr-"> </span><span class="sgr-1">}</span><span class="sgr-"> </span><span class="sgr-32">|</span>
<span class="sgr-32">head</span><span class="sgr-"> -n 11</span>
366: Support searching file from elvish directly