2022-09-30 11:32:18 -03:00
|
|
|
{% assign linux_cmd_blob = '' %}
|
|
|
|
{% assign linux_split_cmds = include.linux | newline_to_br | strip_newlines | split: '<br />' %}
|
2022-10-17 00:11:21 -03:00
|
|
|
{% assign raw_output = false %}
|
2022-09-30 11:32:18 -03:00
|
|
|
{% for linux_raw_cmd in linux_split_cmds %}
|
|
|
|
{% assign linux_cmd = linux_raw_cmd | strip | split: ' ' | first %}
|
|
|
|
{% assign linux_tail = linux_raw_cmd | strip | remove_first: linux_cmd %}
|
2022-10-17 00:11:21 -03:00
|
|
|
{% if linux_cmd == nil %}
|
|
|
|
{% assign raw_output = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% if raw_output %}
|
|
|
|
{% capture linux_cmd_blob %}{{linux_cmd_blob}}{{linux_cmd}}{{linux_tail}}
|
2022-09-30 11:32:18 -03:00
|
|
|
{% endcapture %}
|
2022-10-17 00:11:21 -03:00
|
|
|
{% else %}
|
|
|
|
{% capture linux_cmd_blob %}{{linux_cmd_blob}}<span class="gp">~ $ </span><span class="s2">{{linux_cmd}}</span>{{linux_tail}}
|
|
|
|
{% endcapture %}
|
|
|
|
{% endif %}
|
2022-09-30 11:32:18 -03:00
|
|
|
{% endfor %}
|
2022-09-29 18:28:32 -03:00
|
|
|
|
2022-09-30 11:32:18 -03:00
|
|
|
{% assign windows_cmd_blob = '' %}
|
|
|
|
{% assign windows_split_cmds = include.windows | newline_to_br | strip_newlines | split: '<br />' %}
|
2022-10-17 00:11:21 -03:00
|
|
|
{% assign raw_output = false %}
|
2022-09-30 11:32:18 -03:00
|
|
|
{% for windows_raw_cmd in windows_split_cmds %}
|
|
|
|
{% assign windows_cmd = windows_raw_cmd | strip | split: ' ' | first %}
|
|
|
|
{% assign windows_tail = windows_raw_cmd | strip | remove_first: windows_cmd %}
|
2022-10-17 00:11:21 -03:00
|
|
|
{% if windows_cmd == nil %}
|
|
|
|
{% assign raw_output = true %}
|
|
|
|
{% endif %}
|
|
|
|
{% if raw_output == true %}
|
|
|
|
{% capture windows_cmd_blob %}{{windows_cmd_blob}}{{windows_cmd}}{{windows_tail}}
|
|
|
|
{% endcapture %}
|
|
|
|
{% else %}
|
|
|
|
{% capture windows_cmd_blob %}{{windows_cmd_blob}}<span class="gp">C:\> </span><span class="s2">{{windows_cmd}}</span>{{windows_tail}}
|
2022-09-30 11:32:18 -03:00
|
|
|
{% endcapture %}
|
2022-10-17 00:11:21 -03:00
|
|
|
{% endif %}
|
2022-09-30 11:32:18 -03:00
|
|
|
{% endfor %}
|
2022-09-29 18:28:32 -03:00
|
|
|
<div class="text-left">
|
2022-09-30 11:32:18 -03:00
|
|
|
<ul class="nav nav-tabs" role="tablist">
|
2022-09-29 18:28:32 -03:00
|
|
|
<li class="nav-item" role="presentation">
|
2022-09-30 11:32:18 -03:00
|
|
|
<a class="nav-link active" id="linux-tab-{{include.id}}" data-toggle="tab" href="#linux-{{include.id}}" role="tab" aria-controls="linux" aria-selected="true">Linux / macOS</a>
|
2022-09-29 18:28:32 -03:00
|
|
|
</li>
|
|
|
|
<li class="nav-item" role="presentation">
|
|
|
|
<a class="nav-link" id="windows-tab-{{include.id}}" data-toggle="tab" href="#windows-{{include.id}}" role="tab" aria-controls="windows" aria-selected="false">Windows</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="tab-content border">
|
|
|
|
<div class="tab-pane fade show active" id="linux-{{include.id}}" role="tabpanel" aria-labelledby="linux-tab">
|
2022-09-30 11:32:18 -03:00
|
|
|
<figure class="highlight"><pre><code class="language-bash" data-lang="bash">{{linux_cmd_blob}}</code></pre></figure>
|
2022-09-29 18:28:32 -03:00
|
|
|
</div>
|
|
|
|
<div class="tab-pane fade" id="windows-{{include.id}}" role="tabpanel" aria-labelledby="windows-tab">
|
2022-09-30 11:32:18 -03:00
|
|
|
<figure class="highlight"><pre><code class="language-bash" data-lang="bash">{{windows_cmd_blob}}</code></pre></figure>
|
2022-09-29 18:28:32 -03:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|