-
-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
initial commit [ci skip]
0 parents
commit ca40322
Showing
222 changed files
with
42,465 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
This file makes sure that Github Pages doesn't process mdBook's output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,208 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en" class="latte sidebar-visible" dir="ltr"> | ||
<head> | ||
<!-- Book generated using mdBook --> | ||
<meta charset="UTF-8"> | ||
<title>Page not found - carapace-bin</title> | ||
<base href="/"> | ||
|
||
|
||
<!-- Custom HTML head --> | ||
|
||
<meta name="description" content="A multi-shell completion binary."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<link rel="icon" href="favicon.svg"> | ||
<link rel="shortcut icon" href="favicon.png"> | ||
<link rel="stylesheet" href="css/variables.css"> | ||
<link rel="stylesheet" href="css/general.css"> | ||
<link rel="stylesheet" href="css/chrome.css"> | ||
<link rel="stylesheet" href="css/print.css" media="print"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css"> | ||
<link rel="stylesheet" href="fonts/fonts.css"> | ||
|
||
<!-- Highlight.js Stylesheets --> | ||
<link rel="stylesheet" href="highlight.css"> | ||
<link rel="stylesheet" href="tomorrow-night.css"> | ||
<link rel="stylesheet" href="ayu-highlight.css"> | ||
|
||
<!-- Custom theme stylesheets --> | ||
<link rel="stylesheet" href="asciinema/asciinema-player.css"> | ||
<link rel="stylesheet" href="./theme/catppuccin.css"> | ||
|
||
|
||
<!-- Provide site root to javascript --> | ||
<script> | ||
var path_to_root = ""; | ||
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "mocha" : "latte"; | ||
</script> | ||
<!-- Start loading toc.js asap --> | ||
<script src="toc.js"></script> | ||
</head> | ||
<body> | ||
<div id="body-container"> | ||
<!-- Work around some values being stored in localStorage wrapped in quotes --> | ||
<script> | ||
try { | ||
var theme = localStorage.getItem('mdbook-theme'); | ||
var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
|
||
if (theme.startsWith('"') && theme.endsWith('"')) { | ||
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
} | ||
|
||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
} | ||
} catch (e) { } | ||
</script> | ||
|
||
<!-- Set the theme before any content is loaded, prevents flash --> | ||
<script> | ||
var theme; | ||
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } | ||
if (theme === null || theme === undefined) { theme = default_theme; } | ||
const html = document.documentElement; | ||
html.classList.remove('latte') | ||
html.classList.add(theme); | ||
html.classList.add("js"); | ||
</script> | ||
|
||
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> | ||
|
||
<!-- Hide / unhide sidebar before it is displayed --> | ||
<script> | ||
var sidebar = null; | ||
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); | ||
if (document.body.clientWidth >= 1080) { | ||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } | ||
sidebar = sidebar || 'visible'; | ||
} else { | ||
sidebar = 'hidden'; | ||
} | ||
sidebar_toggle.checked = sidebar === 'visible'; | ||
html.classList.remove('sidebar-visible'); | ||
html.classList.add("sidebar-" + sidebar); | ||
</script> | ||
|
||
<nav id="sidebar" class="sidebar" aria-label="Table of contents"> | ||
<!-- populated by js --> | ||
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> | ||
<noscript> | ||
<iframe class="sidebar-iframe-outer" src="toc.html"></iframe> | ||
</noscript> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> | ||
<div class="left-buttons"> | ||
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> | ||
<i class="fa fa-bars"></i> | ||
</label> | ||
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> | ||
<i class="fa fa-paint-brush"></i> | ||
</button> | ||
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> | ||
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="latte">Latte</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="frappe">Frappé</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="macchiato">Macchiato</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="mocha">Mocha</button></li> | ||
</ul> | ||
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> | ||
<i class="fa fa-search"></i> | ||
</button> | ||
</div> | ||
|
||
<h1 class="menu-title">carapace-bin</h1> | ||
|
||
<div class="right-buttons"> | ||
<a href="print.html" title="Print this book" aria-label="Print this book"> | ||
<i id="print-button" class="fa fa-print"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin" title="Git repository" aria-label="Git repository"> | ||
<i id="git-repository-button" class="fa fa-github"></i> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="search-wrapper" class="hidden"> | ||
<form id="searchbar-outer" class="searchbar-outer"> | ||
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> | ||
</form> | ||
<div id="searchresults-outer" class="searchresults-outer hidden"> | ||
<div id="searchresults-header" class="searchresults-header"></div> | ||
<ul id="searchresults"> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> | ||
<script> | ||
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); | ||
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); | ||
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { | ||
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); | ||
}); | ||
</script> | ||
|
||
<div id="content" class="content"> | ||
<main> | ||
<h1 id="document-not-found-404"><a class="header" href="#document-not-found-404">Document not found (404)</a></h1> | ||
<p>This URL is invalid, sorry. Please use the navigation bar or search to continue.</p> | ||
|
||
</main> | ||
|
||
<nav class="nav-wrapper" aria-label="Page navigation"> | ||
<!-- Mobile navigation buttons --> | ||
|
||
|
||
<div style="clear: both"></div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<nav class="nav-wide-wrapper" aria-label="Page navigation"> | ||
|
||
</nav> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<script> | ||
window.playground_copyable = true; | ||
</script> | ||
|
||
|
||
<script src="elasticlunr.min.js"></script> | ||
<script src="mark.min.js"></script> | ||
<script src="searcher.js"></script> | ||
|
||
<script src="clipboard.min.js"></script> | ||
<script src="highlight.js"></script> | ||
<script src="book.js"></script> | ||
|
||
<!-- Custom JS scripts --> | ||
<script src="asciinema/asciinema-player.min.js"></script> | ||
<script src="asciinema/load.js"></script> | ||
|
||
|
||
</div> | ||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
window.addEventListener("load", function () { | ||
// <img src="./carapace-bin.cast" alt="" /> | ||
for (elem of Array.prototype.slice.call(document.getElementsByTagName("img")).reverse()) | ||
if (elem.src.endsWith(".cast")) { | ||
const newItem = document.createElement("div"); | ||
newItem.id = elem.src; | ||
elem.parentNode.replaceChild(newItem, elem); | ||
AsciinemaPlayer.create(newItem.id, newItem, {cols: 108, rows: 24}); | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
/* | ||
Based off of the Ayu theme | ||
Original by Dempfi (https://github.com/dempfi/ayu) | ||
*/ | ||
|
||
.hljs { | ||
display: block; | ||
overflow-x: auto; | ||
background: #191f26; | ||
color: #e6e1cf; | ||
} | ||
|
||
.hljs-comment, | ||
.hljs-quote { | ||
color: #5c6773; | ||
font-style: italic; | ||
} | ||
|
||
.hljs-variable, | ||
.hljs-template-variable, | ||
.hljs-attribute, | ||
.hljs-attr, | ||
.hljs-regexp, | ||
.hljs-link, | ||
.hljs-selector-id, | ||
.hljs-selector-class { | ||
color: #ff7733; | ||
} | ||
|
||
.hljs-number, | ||
.hljs-meta, | ||
.hljs-builtin-name, | ||
.hljs-literal, | ||
.hljs-type, | ||
.hljs-params { | ||
color: #ffee99; | ||
} | ||
|
||
.hljs-string, | ||
.hljs-bullet { | ||
color: #b8cc52; | ||
} | ||
|
||
.hljs-title, | ||
.hljs-built_in, | ||
.hljs-section { | ||
color: #ffb454; | ||
} | ||
|
||
.hljs-keyword, | ||
.hljs-selector-tag, | ||
.hljs-symbol { | ||
color: #ff7733; | ||
} | ||
|
||
.hljs-name { | ||
color: #36a3d9; | ||
} | ||
|
||
.hljs-tag { | ||
color: #00568d; | ||
} | ||
|
||
.hljs-emphasis { | ||
font-style: italic; | ||
} | ||
|
||
.hljs-strong { | ||
font-weight: bold; | ||
} | ||
|
||
.hljs-addition { | ||
color: #91b362; | ||
} | ||
|
||
.hljs-deletion { | ||
color: #d96c75; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,255 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en" class="latte sidebar-visible" dir="ltr"> | ||
<head> | ||
<!-- Book generated using mdBook --> | ||
<meta charset="UTF-8"> | ||
<title>Bridges - carapace-bin</title> | ||
|
||
|
||
<!-- Custom HTML head --> | ||
|
||
<meta name="description" content="A multi-shell completion binary."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<link rel="icon" href="favicon.svg"> | ||
<link rel="shortcut icon" href="favicon.png"> | ||
<link rel="stylesheet" href="css/variables.css"> | ||
<link rel="stylesheet" href="css/general.css"> | ||
<link rel="stylesheet" href="css/chrome.css"> | ||
<link rel="stylesheet" href="css/print.css" media="print"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css"> | ||
<link rel="stylesheet" href="fonts/fonts.css"> | ||
|
||
<!-- Highlight.js Stylesheets --> | ||
<link rel="stylesheet" href="highlight.css"> | ||
<link rel="stylesheet" href="tomorrow-night.css"> | ||
<link rel="stylesheet" href="ayu-highlight.css"> | ||
|
||
<!-- Custom theme stylesheets --> | ||
<link rel="stylesheet" href="asciinema/asciinema-player.css"> | ||
<link rel="stylesheet" href="./theme/catppuccin.css"> | ||
|
||
|
||
<!-- Provide site root to javascript --> | ||
<script> | ||
var path_to_root = ""; | ||
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "mocha" : "latte"; | ||
</script> | ||
<!-- Start loading toc.js asap --> | ||
<script src="toc.js"></script> | ||
</head> | ||
<body> | ||
<div id="body-container"> | ||
<!-- Work around some values being stored in localStorage wrapped in quotes --> | ||
<script> | ||
try { | ||
var theme = localStorage.getItem('mdbook-theme'); | ||
var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
|
||
if (theme.startsWith('"') && theme.endsWith('"')) { | ||
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
} | ||
|
||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
} | ||
} catch (e) { } | ||
</script> | ||
|
||
<!-- Set the theme before any content is loaded, prevents flash --> | ||
<script> | ||
var theme; | ||
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } | ||
if (theme === null || theme === undefined) { theme = default_theme; } | ||
const html = document.documentElement; | ||
html.classList.remove('latte') | ||
html.classList.add(theme); | ||
html.classList.add("js"); | ||
</script> | ||
|
||
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> | ||
|
||
<!-- Hide / unhide sidebar before it is displayed --> | ||
<script> | ||
var sidebar = null; | ||
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); | ||
if (document.body.clientWidth >= 1080) { | ||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } | ||
sidebar = sidebar || 'visible'; | ||
} else { | ||
sidebar = 'hidden'; | ||
} | ||
sidebar_toggle.checked = sidebar === 'visible'; | ||
html.classList.remove('sidebar-visible'); | ||
html.classList.add("sidebar-" + sidebar); | ||
</script> | ||
|
||
<nav id="sidebar" class="sidebar" aria-label="Table of contents"> | ||
<!-- populated by js --> | ||
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> | ||
<noscript> | ||
<iframe class="sidebar-iframe-outer" src="toc.html"></iframe> | ||
</noscript> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> | ||
<div class="left-buttons"> | ||
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> | ||
<i class="fa fa-bars"></i> | ||
</label> | ||
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> | ||
<i class="fa fa-paint-brush"></i> | ||
</button> | ||
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> | ||
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="latte">Latte</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="frappe">Frappé</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="macchiato">Macchiato</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="mocha">Mocha</button></li> | ||
</ul> | ||
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> | ||
<i class="fa fa-search"></i> | ||
</button> | ||
</div> | ||
|
||
<h1 class="menu-title">carapace-bin</h1> | ||
|
||
<div class="right-buttons"> | ||
<a href="print.html" title="Print this book" aria-label="Print this book"> | ||
<i id="print-button" class="fa fa-print"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin" title="Git repository" aria-label="Git repository"> | ||
<i id="git-repository-button" class="fa fa-github"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin/edit/master/docs/src/bridges.md" title="Suggest an edit" aria-label="Suggest an edit"> | ||
<i id="git-edit-button" class="fa fa-edit"></i> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="search-wrapper" class="hidden"> | ||
<form id="searchbar-outer" class="searchbar-outer"> | ||
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> | ||
</form> | ||
<div id="searchresults-outer" class="searchresults-outer hidden"> | ||
<div id="searchresults-header" class="searchresults-header"></div> | ||
<ul id="searchresults"> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> | ||
<script> | ||
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); | ||
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); | ||
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { | ||
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); | ||
}); | ||
</script> | ||
|
||
<div id="content" class="content"> | ||
<main> | ||
<h1 id="bridges"><a class="header" href="#bridges">Bridges</a></h1> | ||
<p>With <code>~/.config/carapace/bridges.yaml</code> generic bridges can be configured for commands.</p> | ||
<pre><code class="language-yaml">gh: cobra | ||
opentofu: complete | ||
tsh: kingpin | ||
</code></pre> | ||
<p><img src="./bridges.cast" alt="" /></p> | ||
<blockquote> | ||
<p><code>bridges.yaml</code> is a simpler alternative to <a href="./spec/bridge.html">Spec/Bridge</a>. | ||
It has a higher precedence than <a href="./setup/environment.html#carapace_bridges">CARAPACES_BRIDGES</a> but lower than internal completers and specs. | ||
So disable an internal completer with <a href="./setup/environment.html#carapace_excludes">CARAPACES_EXCLUDES</a> if you want to replace it with a bridge.</p> | ||
</blockquote> | ||
<p>Currently available bridges:</p> | ||
<ul> | ||
<li><a href="https://github.com/kislyuk/argcomplete">argcomplete</a></li> | ||
<li><a href="https://www.gnu.org/software/bash/">bash</a></li> | ||
<li><a href="https://github.com/carapace-sh/carapace">carapace</a></li> | ||
<li><a href="https://github.com/clap-rs/clap">clap</a> (needs <a href="https://github.com/clap-rs/clap/issues/3166">clap-rs/clap#3166</a>)</li> | ||
<li><a href="https://github.com/pallets/click">click</a></li> | ||
<li><a href="https://github.com/spf13/cobra">cobra</a></li> | ||
<li><a href="https://github.com/posener/complete">complete</a></li> | ||
<li><a href="https://fishshell.com/">fish</a></li> | ||
<li><a href="https://github.com/microsoft/inshellisense">inshellisense</a></li> | ||
<li><a href="https://github.com/alecthomas/kingpin">kingpin</a></li> | ||
<li><a href="https://microsoft.com/powershell">powershell</a></li> | ||
<li><a href="https://github.com/urfave/cli">urfavecli</a></li> | ||
<li><a href="https://github.com/yargs/yargs">yargs</a></li> | ||
<li><a href="https://www.zsh.org/">zsh</a></li> | ||
</ul> | ||
<blockquote> | ||
<p>Bridging frameworks should be preferred to shells (e.g. zsh) as these generally work better and have less overhead.</p> | ||
</blockquote> | ||
<h2 id="cache"><a class="header" href="#cache">Cache</a></h2> | ||
<p>The list of completers is cached to not impact shell startup time. | ||
Clear the cache with <code>carapace --clear-cache</code> if your system changes.</p> | ||
|
||
</main> | ||
|
||
<nav class="nav-wrapper" aria-label="Page navigation"> | ||
<!-- Mobile navigation buttons --> | ||
<a rel="prev" href="style.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="spec.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
|
||
<div style="clear: both"></div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<nav class="nav-wide-wrapper" aria-label="Page navigation"> | ||
<a rel="prev" href="style.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="spec.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
</nav> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<script> | ||
window.playground_copyable = true; | ||
</script> | ||
|
||
|
||
<script src="elasticlunr.min.js"></script> | ||
<script src="mark.min.js"></script> | ||
<script src="searcher.js"></script> | ||
|
||
<script src="clipboard.min.js"></script> | ||
<script src="highlight.js"></script> | ||
<script src="book.js"></script> | ||
|
||
<!-- Custom JS scripts --> | ||
<script src="asciinema/asciinema-player.min.js"></script> | ||
<script src="asciinema/load.js"></script> | ||
|
||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,230 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en" class="latte sidebar-visible" dir="ltr"> | ||
<head> | ||
<!-- Book generated using mdBook --> | ||
<meta charset="UTF-8"> | ||
<title>carapace-bin - carapace-bin</title> | ||
|
||
|
||
<!-- Custom HTML head --> | ||
|
||
<meta name="description" content="A multi-shell completion binary."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<link rel="icon" href="favicon.svg"> | ||
<link rel="shortcut icon" href="favicon.png"> | ||
<link rel="stylesheet" href="css/variables.css"> | ||
<link rel="stylesheet" href="css/general.css"> | ||
<link rel="stylesheet" href="css/chrome.css"> | ||
<link rel="stylesheet" href="css/print.css" media="print"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css"> | ||
<link rel="stylesheet" href="fonts/fonts.css"> | ||
|
||
<!-- Highlight.js Stylesheets --> | ||
<link rel="stylesheet" href="highlight.css"> | ||
<link rel="stylesheet" href="tomorrow-night.css"> | ||
<link rel="stylesheet" href="ayu-highlight.css"> | ||
|
||
<!-- Custom theme stylesheets --> | ||
<link rel="stylesheet" href="asciinema/asciinema-player.css"> | ||
<link rel="stylesheet" href="./theme/catppuccin.css"> | ||
|
||
|
||
<!-- Provide site root to javascript --> | ||
<script> | ||
var path_to_root = ""; | ||
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "mocha" : "latte"; | ||
</script> | ||
<!-- Start loading toc.js asap --> | ||
<script src="toc.js"></script> | ||
</head> | ||
<body> | ||
<div id="body-container"> | ||
<!-- Work around some values being stored in localStorage wrapped in quotes --> | ||
<script> | ||
try { | ||
var theme = localStorage.getItem('mdbook-theme'); | ||
var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
|
||
if (theme.startsWith('"') && theme.endsWith('"')) { | ||
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
} | ||
|
||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
} | ||
} catch (e) { } | ||
</script> | ||
|
||
<!-- Set the theme before any content is loaded, prevents flash --> | ||
<script> | ||
var theme; | ||
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } | ||
if (theme === null || theme === undefined) { theme = default_theme; } | ||
const html = document.documentElement; | ||
html.classList.remove('latte') | ||
html.classList.add(theme); | ||
html.classList.add("js"); | ||
</script> | ||
|
||
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> | ||
|
||
<!-- Hide / unhide sidebar before it is displayed --> | ||
<script> | ||
var sidebar = null; | ||
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); | ||
if (document.body.clientWidth >= 1080) { | ||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } | ||
sidebar = sidebar || 'visible'; | ||
} else { | ||
sidebar = 'hidden'; | ||
} | ||
sidebar_toggle.checked = sidebar === 'visible'; | ||
html.classList.remove('sidebar-visible'); | ||
html.classList.add("sidebar-" + sidebar); | ||
</script> | ||
|
||
<nav id="sidebar" class="sidebar" aria-label="Table of contents"> | ||
<!-- populated by js --> | ||
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> | ||
<noscript> | ||
<iframe class="sidebar-iframe-outer" src="toc.html"></iframe> | ||
</noscript> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> | ||
<div class="left-buttons"> | ||
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> | ||
<i class="fa fa-bars"></i> | ||
</label> | ||
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> | ||
<i class="fa fa-paint-brush"></i> | ||
</button> | ||
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> | ||
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="latte">Latte</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="frappe">Frappé</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="macchiato">Macchiato</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="mocha">Mocha</button></li> | ||
</ul> | ||
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> | ||
<i class="fa fa-search"></i> | ||
</button> | ||
</div> | ||
|
||
<h1 class="menu-title">carapace-bin</h1> | ||
|
||
<div class="right-buttons"> | ||
<a href="print.html" title="Print this book" aria-label="Print this book"> | ||
<i id="print-button" class="fa fa-print"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin" title="Git repository" aria-label="Git repository"> | ||
<i id="git-repository-button" class="fa fa-github"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin/edit/master/docs/src/carapace-bin.md" title="Suggest an edit" aria-label="Suggest an edit"> | ||
<i id="git-edit-button" class="fa fa-edit"></i> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="search-wrapper" class="hidden"> | ||
<form id="searchbar-outer" class="searchbar-outer"> | ||
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> | ||
</form> | ||
<div id="searchresults-outer" class="searchresults-outer hidden"> | ||
<div id="searchresults-header" class="searchresults-header"></div> | ||
<ul id="searchresults"> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> | ||
<script> | ||
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); | ||
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); | ||
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { | ||
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); | ||
}); | ||
</script> | ||
|
||
<div id="content" class="content"> | ||
<main> | ||
<h1 id="carapace-bin"><a class="header" href="#carapace-bin">carapace-bin</a></h1> | ||
<p><a href="https://github.com/carapace-sh/carapace-bin">carapace-bin</a> is a multi-shell multi-command argument completer based on <a href="https://github.com/carapace-sh/carapace">carapace-sh/carapace</a>.</p> | ||
<p><img src="./opengraph-elvish.png" alt="" /></p> | ||
<p>Supported shells:</p> | ||
<ul> | ||
<li><a href="https://www.gnu.org/software/bash/">Bash</a></li> | ||
<li><a href="https://elv.sh/">Elvish</a></li> | ||
<li><a href="https://fishshell.com/">Fish</a></li> | ||
<li><a href="https://doc.redox-os.org/ion-manual/">Ion</a> (<a href="https://github.com/carapace-sh/carapace/issues/88">experimental</a>)</li> | ||
<li><a href="https://www.nushell.sh/">Nushell</a></li> | ||
<li><a href="http://www.oilshell.org/">Oil</a></li> | ||
<li><a href="https://microsoft.com/powershell">Powershell</a></li> | ||
<li><a href="https://www.tcsh.org/">Tcsh</a> (<a href="https://github.com/carapace-sh/carapace/issues/331">experimental</a>)</li> | ||
<li><a href="https://xon.sh/">Xonsh</a></li> | ||
<li><a href="https://www.zsh.org/">Zsh</a></li> | ||
</ul> | ||
|
||
</main> | ||
|
||
<nav class="nav-wrapper" aria-label="Page navigation"> | ||
<!-- Mobile navigation buttons --> | ||
|
||
<a rel="next prefetch" href="install.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
|
||
<div style="clear: both"></div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<nav class="nav-wide-wrapper" aria-label="Page navigation"> | ||
|
||
<a rel="next prefetch" href="install.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
</nav> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<script> | ||
window.playground_copyable = true; | ||
</script> | ||
|
||
|
||
<script src="elasticlunr.min.js"></script> | ||
<script src="mark.min.js"></script> | ||
<script src="searcher.js"></script> | ||
|
||
<script src="clipboard.min.js"></script> | ||
<script src="highlight.js"></script> | ||
<script src="book.js"></script> | ||
|
||
<!-- Custom JS scripts --> | ||
<script src="asciinema/asciinema-player.min.js"></script> | ||
<script src="asciinema/load.js"></script> | ||
|
||
|
||
</div> | ||
</body> | ||
</html> |
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,242 @@ | ||
/* Base styles and content styles */ | ||
|
||
:root { | ||
/* Browser default font-size is 16px, this way 1 rem = 10px */ | ||
font-size: 62.5%; | ||
color-scheme: var(--color-scheme); | ||
} | ||
|
||
html { | ||
font-family: "Open Sans", sans-serif; | ||
color: var(--fg); | ||
background-color: var(--bg); | ||
text-size-adjust: none; | ||
-webkit-text-size-adjust: none; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
font-size: 1.6rem; | ||
overflow-x: hidden; | ||
} | ||
|
||
code { | ||
font-family: var(--mono-font) !important; | ||
font-size: var(--code-font-size); | ||
direction: ltr !important; | ||
} | ||
|
||
/* make long words/inline code not x overflow */ | ||
main { | ||
overflow-wrap: break-word; | ||
} | ||
|
||
/* make wide tables scroll if they overflow */ | ||
.table-wrapper { | ||
overflow-x: auto; | ||
} | ||
|
||
/* Don't change font size in headers. */ | ||
h1 code, h2 code, h3 code, h4 code, h5 code, h6 code { | ||
font-size: unset; | ||
} | ||
|
||
.left { float: left; } | ||
.right { float: right; } | ||
.boring { opacity: 0.6; } | ||
.hide-boring .boring { display: none; } | ||
.hidden { display: none !important; } | ||
|
||
h2, h3 { margin-block-start: 2.5em; } | ||
h4, h5 { margin-block-start: 2em; } | ||
|
||
.header + .header h3, | ||
.header + .header h4, | ||
.header + .header h5 { | ||
margin-block-start: 1em; | ||
} | ||
|
||
h1:target::before, | ||
h2:target::before, | ||
h3:target::before, | ||
h4:target::before, | ||
h5:target::before, | ||
h6:target::before { | ||
display: inline-block; | ||
content: "»"; | ||
margin-inline-start: -30px; | ||
width: 30px; | ||
} | ||
|
||
/* This is broken on Safari as of version 14, but is fixed | ||
in Safari Technology Preview 117 which I think will be Safari 14.2. | ||
https://bugs.webkit.org/show_bug.cgi?id=218076 | ||
*/ | ||
:target { | ||
/* Safari does not support logical properties */ | ||
scroll-margin-top: calc(var(--menu-bar-height) + 0.5em); | ||
} | ||
|
||
.page { | ||
outline: 0; | ||
padding: 0 var(--page-padding); | ||
margin-block-start: calc(0px - var(--menu-bar-height)); /* Compensate for the #menu-bar-hover-placeholder */ | ||
} | ||
.page-wrapper { | ||
box-sizing: border-box; | ||
background-color: var(--bg); | ||
} | ||
.no-js .page-wrapper, | ||
.js:not(.sidebar-resizing) .page-wrapper { | ||
transition: margin-left 0.3s ease, transform 0.3s ease; /* Animation: slide away */ | ||
} | ||
[dir=rtl] .js:not(.sidebar-resizing) .page-wrapper { | ||
transition: margin-right 0.3s ease, transform 0.3s ease; /* Animation: slide away */ | ||
} | ||
|
||
.content { | ||
overflow-y: auto; | ||
padding: 0 5px 50px 5px; | ||
} | ||
.content main { | ||
margin-inline-start: auto; | ||
margin-inline-end: auto; | ||
max-width: var(--content-max-width); | ||
} | ||
.content p { line-height: 1.45em; } | ||
.content ol { line-height: 1.45em; } | ||
.content ul { line-height: 1.45em; } | ||
.content a { text-decoration: none; } | ||
.content a:hover { text-decoration: underline; } | ||
.content img, .content video { max-width: 100%; } | ||
.content .header:link, | ||
.content .header:visited { | ||
color: var(--fg); | ||
} | ||
.content .header:link, | ||
.content .header:visited:hover { | ||
text-decoration: none; | ||
} | ||
|
||
table { | ||
margin: 0 auto; | ||
border-collapse: collapse; | ||
} | ||
table td { | ||
padding: 3px 20px; | ||
border: 1px var(--table-border-color) solid; | ||
} | ||
table thead { | ||
background: var(--table-header-bg); | ||
} | ||
table thead td { | ||
font-weight: 700; | ||
border: none; | ||
} | ||
table thead th { | ||
padding: 3px 20px; | ||
} | ||
table thead tr { | ||
border: 1px var(--table-header-bg) solid; | ||
} | ||
/* Alternate background colors for rows */ | ||
table tbody tr:nth-child(2n) { | ||
background: var(--table-alternate-bg); | ||
} | ||
|
||
|
||
blockquote { | ||
margin: 20px 0; | ||
padding: 0 20px; | ||
color: var(--fg); | ||
background-color: var(--quote-bg); | ||
border-block-start: .1em solid var(--quote-border); | ||
border-block-end: .1em solid var(--quote-border); | ||
} | ||
|
||
.warning { | ||
margin: 20px; | ||
padding: 0 20px; | ||
border-inline-start: 2px solid var(--warning-border); | ||
} | ||
|
||
.warning:before { | ||
position: absolute; | ||
width: 3rem; | ||
height: 3rem; | ||
margin-inline-start: calc(-1.5rem - 21px); | ||
content: "ⓘ"; | ||
text-align: center; | ||
background-color: var(--bg); | ||
color: var(--warning-border); | ||
font-weight: bold; | ||
font-size: 2rem; | ||
} | ||
|
||
blockquote .warning:before { | ||
background-color: var(--quote-bg); | ||
} | ||
|
||
kbd { | ||
background-color: var(--table-border-color); | ||
border-radius: 4px; | ||
border: solid 1px var(--theme-popup-border); | ||
box-shadow: inset 0 -1px 0 var(--theme-hover); | ||
display: inline-block; | ||
font-size: var(--code-font-size); | ||
font-family: var(--mono-font); | ||
line-height: 10px; | ||
padding: 4px 5px; | ||
vertical-align: middle; | ||
} | ||
|
||
sup { | ||
/* Set the line-height for superscript and footnote references so that there | ||
isn't an awkward space appearing above lines that contain the footnote. | ||
See https://github.com/rust-lang/mdBook/pull/2443#discussion_r1813773583 | ||
for an explanation. | ||
*/ | ||
line-height: 0; | ||
} | ||
|
||
:not(.footnote-definition) + .footnote-definition, | ||
.footnote-definition + :not(.footnote-definition) { | ||
margin-block-start: 2em; | ||
} | ||
.footnote-definition { | ||
font-size: 0.9em; | ||
margin: 0.5em 0; | ||
} | ||
.footnote-definition p { | ||
display: inline; | ||
} | ||
|
||
.tooltiptext { | ||
position: absolute; | ||
visibility: hidden; | ||
color: #fff; | ||
background-color: #333; | ||
transform: translateX(-50%); /* Center by moving tooltip 50% of its width left */ | ||
left: -8px; /* Half of the width of the icon */ | ||
top: -35px; | ||
font-size: 0.8em; | ||
text-align: center; | ||
border-radius: 6px; | ||
padding: 5px 8px; | ||
margin: 5px; | ||
z-index: 1000; | ||
} | ||
.tooltipped .tooltiptext { | ||
visibility: visible; | ||
} | ||
|
||
.chapter li.part-title { | ||
color: var(--sidebar-fg); | ||
margin: 5px 0px; | ||
font-weight: bold; | ||
} | ||
|
||
.result-no-output { | ||
font-style: italic; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
|
||
#sidebar, | ||
#menu-bar, | ||
.nav-chapters, | ||
.mobile-nav-chapters { | ||
display: none; | ||
} | ||
|
||
#page-wrapper.page-wrapper { | ||
transform: none !important; | ||
margin-inline-start: 0px; | ||
overflow-y: initial; | ||
} | ||
|
||
#content { | ||
max-width: none; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
.page { | ||
overflow-y: initial; | ||
} | ||
|
||
code { | ||
direction: ltr !important; | ||
} | ||
|
||
pre > .buttons { | ||
z-index: 2; | ||
} | ||
|
||
a, a:visited, a:active, a:hover { | ||
color: #4183c4; | ||
text-decoration: none; | ||
} | ||
|
||
h1, h2, h3, h4, h5, h6 { | ||
page-break-inside: avoid; | ||
page-break-after: avoid; | ||
} | ||
|
||
pre, code { | ||
page-break-inside: avoid; | ||
white-space: pre-wrap; | ||
} | ||
|
||
.fa { | ||
display: none !important; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,309 @@ | ||
|
||
/* Globals */ | ||
|
||
:root { | ||
--sidebar-width: 300px; | ||
--sidebar-resize-indicator-width: 8px; | ||
--sidebar-resize-indicator-space: 2px; | ||
--page-padding: 15px; | ||
--content-max-width: 750px; | ||
--menu-bar-height: 50px; | ||
--mono-font: "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace; | ||
--code-font-size: 0.875em /* please adjust the ace font size accordingly in editor.js */ | ||
} | ||
|
||
/* Themes */ | ||
|
||
.ayu { | ||
--bg: hsl(210, 25%, 8%); | ||
--fg: #c5c5c5; | ||
|
||
--sidebar-bg: #14191f; | ||
--sidebar-fg: #c8c9db; | ||
--sidebar-non-existant: #5c6773; | ||
--sidebar-active: #ffb454; | ||
--sidebar-spacer: #2d334f; | ||
|
||
--scrollbar: var(--sidebar-fg); | ||
|
||
--icons: #737480; | ||
--icons-hover: #b7b9cc; | ||
|
||
--links: #0096cf; | ||
|
||
--inline-code-color: #ffb454; | ||
|
||
--theme-popup-bg: #14191f; | ||
--theme-popup-border: #5c6773; | ||
--theme-hover: #191f26; | ||
|
||
--quote-bg: hsl(226, 15%, 17%); | ||
--quote-border: hsl(226, 15%, 22%); | ||
|
||
--warning-border: #ff8e00; | ||
|
||
--table-border-color: hsl(210, 25%, 13%); | ||
--table-header-bg: hsl(210, 25%, 28%); | ||
--table-alternate-bg: hsl(210, 25%, 11%); | ||
|
||
--searchbar-border-color: #848484; | ||
--searchbar-bg: #424242; | ||
--searchbar-fg: #fff; | ||
--searchbar-shadow-color: #d4c89f; | ||
--searchresults-header-fg: #666; | ||
--searchresults-border-color: #888; | ||
--searchresults-li-bg: #252932; | ||
--search-mark-bg: #e3b171; | ||
|
||
--color-scheme: dark; | ||
|
||
/* Same as `--icons` */ | ||
--copy-button-filter: invert(45%) sepia(6%) saturate(621%) hue-rotate(198deg) brightness(99%) contrast(85%); | ||
/* Same as `--sidebar-active` */ | ||
--copy-button-filter-hover: invert(68%) sepia(55%) saturate(531%) hue-rotate(341deg) brightness(104%) contrast(101%); | ||
} | ||
|
||
.coal { | ||
--bg: hsl(200, 7%, 8%); | ||
--fg: #98a3ad; | ||
|
||
--sidebar-bg: #292c2f; | ||
--sidebar-fg: #a1adb8; | ||
--sidebar-non-existant: #505254; | ||
--sidebar-active: #3473ad; | ||
--sidebar-spacer: #393939; | ||
|
||
--scrollbar: var(--sidebar-fg); | ||
|
||
--icons: #43484d; | ||
--icons-hover: #b3c0cc; | ||
|
||
--links: #2b79a2; | ||
|
||
--inline-code-color: #c5c8c6; | ||
|
||
--theme-popup-bg: #141617; | ||
--theme-popup-border: #43484d; | ||
--theme-hover: #1f2124; | ||
|
||
--quote-bg: hsl(234, 21%, 18%); | ||
--quote-border: hsl(234, 21%, 23%); | ||
|
||
--warning-border: #ff8e00; | ||
|
||
--table-border-color: hsl(200, 7%, 13%); | ||
--table-header-bg: hsl(200, 7%, 28%); | ||
--table-alternate-bg: hsl(200, 7%, 11%); | ||
|
||
--searchbar-border-color: #aaa; | ||
--searchbar-bg: #b7b7b7; | ||
--searchbar-fg: #000; | ||
--searchbar-shadow-color: #aaa; | ||
--searchresults-header-fg: #666; | ||
--searchresults-border-color: #98a3ad; | ||
--searchresults-li-bg: #2b2b2f; | ||
--search-mark-bg: #355c7d; | ||
|
||
--color-scheme: dark; | ||
|
||
/* Same as `--icons` */ | ||
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%); | ||
/* Same as `--sidebar-active` */ | ||
--copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%); | ||
} | ||
|
||
.light, html:not(.js) { | ||
--bg: hsl(0, 0%, 100%); | ||
--fg: hsl(0, 0%, 0%); | ||
|
||
--sidebar-bg: #fafafa; | ||
--sidebar-fg: hsl(0, 0%, 0%); | ||
--sidebar-non-existant: #aaaaaa; | ||
--sidebar-active: #1f1fff; | ||
--sidebar-spacer: #f4f4f4; | ||
|
||
--scrollbar: #8F8F8F; | ||
|
||
--icons: #747474; | ||
--icons-hover: #000000; | ||
|
||
--links: #20609f; | ||
|
||
--inline-code-color: #301900; | ||
|
||
--theme-popup-bg: #fafafa; | ||
--theme-popup-border: #cccccc; | ||
--theme-hover: #e6e6e6; | ||
|
||
--quote-bg: hsl(197, 37%, 96%); | ||
--quote-border: hsl(197, 37%, 91%); | ||
|
||
--warning-border: #ff8e00; | ||
|
||
--table-border-color: hsl(0, 0%, 95%); | ||
--table-header-bg: hsl(0, 0%, 80%); | ||
--table-alternate-bg: hsl(0, 0%, 97%); | ||
|
||
--searchbar-border-color: #aaa; | ||
--searchbar-bg: #fafafa; | ||
--searchbar-fg: #000; | ||
--searchbar-shadow-color: #aaa; | ||
--searchresults-header-fg: #666; | ||
--searchresults-border-color: #888; | ||
--searchresults-li-bg: #e4f2fe; | ||
--search-mark-bg: #a2cff5; | ||
|
||
--color-scheme: light; | ||
|
||
/* Same as `--icons` */ | ||
--copy-button-filter: invert(45.49%); | ||
/* Same as `--sidebar-active` */ | ||
--copy-button-filter-hover: invert(14%) sepia(93%) saturate(4250%) hue-rotate(243deg) brightness(99%) contrast(130%); | ||
} | ||
|
||
.navy { | ||
--bg: hsl(226, 23%, 11%); | ||
--fg: #bcbdd0; | ||
|
||
--sidebar-bg: #282d3f; | ||
--sidebar-fg: #c8c9db; | ||
--sidebar-non-existant: #505274; | ||
--sidebar-active: #2b79a2; | ||
--sidebar-spacer: #2d334f; | ||
|
||
--scrollbar: var(--sidebar-fg); | ||
|
||
--icons: #737480; | ||
--icons-hover: #b7b9cc; | ||
|
||
--links: #2b79a2; | ||
|
||
--inline-code-color: #c5c8c6; | ||
|
||
--theme-popup-bg: #161923; | ||
--theme-popup-border: #737480; | ||
--theme-hover: #282e40; | ||
|
||
--quote-bg: hsl(226, 15%, 17%); | ||
--quote-border: hsl(226, 15%, 22%); | ||
|
||
--warning-border: #ff8e00; | ||
|
||
--table-border-color: hsl(226, 23%, 16%); | ||
--table-header-bg: hsl(226, 23%, 31%); | ||
--table-alternate-bg: hsl(226, 23%, 14%); | ||
|
||
--searchbar-border-color: #aaa; | ||
--searchbar-bg: #aeaec6; | ||
--searchbar-fg: #000; | ||
--searchbar-shadow-color: #aaa; | ||
--searchresults-header-fg: #5f5f71; | ||
--searchresults-border-color: #5c5c68; | ||
--searchresults-li-bg: #242430; | ||
--search-mark-bg: #a2cff5; | ||
|
||
--color-scheme: dark; | ||
|
||
/* Same as `--icons` */ | ||
--copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%); | ||
/* Same as `--sidebar-active` */ | ||
--copy-button-filter-hover: invert(46%) sepia(20%) saturate(1537%) hue-rotate(156deg) brightness(85%) contrast(90%); | ||
} | ||
|
||
.rust { | ||
--bg: hsl(60, 9%, 87%); | ||
--fg: #262625; | ||
|
||
--sidebar-bg: #3b2e2a; | ||
--sidebar-fg: #c8c9db; | ||
--sidebar-non-existant: #505254; | ||
--sidebar-active: #e69f67; | ||
--sidebar-spacer: #45373a; | ||
|
||
--scrollbar: var(--sidebar-fg); | ||
|
||
--icons: #737480; | ||
--icons-hover: #262625; | ||
|
||
--links: #2b79a2; | ||
|
||
--inline-code-color: #6e6b5e; | ||
|
||
--theme-popup-bg: #e1e1db; | ||
--theme-popup-border: #b38f6b; | ||
--theme-hover: #99908a; | ||
|
||
--quote-bg: hsl(60, 5%, 75%); | ||
--quote-border: hsl(60, 5%, 70%); | ||
|
||
--warning-border: #ff8e00; | ||
|
||
--table-border-color: hsl(60, 9%, 82%); | ||
--table-header-bg: #b3a497; | ||
--table-alternate-bg: hsl(60, 9%, 84%); | ||
|
||
--searchbar-border-color: #aaa; | ||
--searchbar-bg: #fafafa; | ||
--searchbar-fg: #000; | ||
--searchbar-shadow-color: #aaa; | ||
--searchresults-header-fg: #666; | ||
--searchresults-border-color: #888; | ||
--searchresults-li-bg: #dec2a2; | ||
--search-mark-bg: #e69f67; | ||
|
||
/* Same as `--icons` */ | ||
--copy-button-filter: invert(51%) sepia(10%) saturate(393%) hue-rotate(198deg) brightness(86%) contrast(87%); | ||
/* Same as `--sidebar-active` */ | ||
--copy-button-filter-hover: invert(77%) sepia(16%) saturate(1798%) hue-rotate(328deg) brightness(98%) contrast(83%); | ||
} | ||
|
||
@media (prefers-color-scheme: dark) { | ||
html:not(.js) { | ||
--bg: hsl(200, 7%, 8%); | ||
--fg: #98a3ad; | ||
|
||
--sidebar-bg: #292c2f; | ||
--sidebar-fg: #a1adb8; | ||
--sidebar-non-existant: #505254; | ||
--sidebar-active: #3473ad; | ||
--sidebar-spacer: #393939; | ||
|
||
--scrollbar: var(--sidebar-fg); | ||
|
||
--icons: #43484d; | ||
--icons-hover: #b3c0cc; | ||
|
||
--links: #2b79a2; | ||
|
||
--inline-code-color: #c5c8c6; | ||
|
||
--theme-popup-bg: #141617; | ||
--theme-popup-border: #43484d; | ||
--theme-hover: #1f2124; | ||
|
||
--quote-bg: hsl(234, 21%, 18%); | ||
--quote-border: hsl(234, 21%, 23%); | ||
|
||
--warning-border: #ff8e00; | ||
|
||
--table-border-color: hsl(200, 7%, 13%); | ||
--table-header-bg: hsl(200, 7%, 28%); | ||
--table-alternate-bg: hsl(200, 7%, 11%); | ||
|
||
--searchbar-border-color: #aaa; | ||
--searchbar-bg: #b7b7b7; | ||
--searchbar-fg: #000; | ||
--searchbar-shadow-color: #aaa; | ||
--searchresults-header-fg: #666; | ||
--searchresults-border-color: #98a3ad; | ||
--searchresults-li-bg: #2b2b2f; | ||
--search-mark-bg: #355c7d; | ||
|
||
--color-scheme: dark; | ||
|
||
/* Same as `--icons` */ | ||
--copy-button-filter: invert(26%) sepia(8%) saturate(575%) hue-rotate(169deg) brightness(87%) contrast(82%); | ||
/* Same as `--sidebar-active` */ | ||
--copy-button-filter-hover: invert(36%) sepia(70%) saturate(503%) hue-rotate(167deg) brightness(98%) contrast(89%); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en" class="latte sidebar-visible" dir="ltr"> | ||
<head> | ||
<!-- Book generated using mdBook --> | ||
<meta charset="UTF-8"> | ||
<title>Development - carapace-bin</title> | ||
|
||
|
||
<!-- Custom HTML head --> | ||
|
||
<meta name="description" content="A multi-shell completion binary."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<link rel="icon" href="favicon.svg"> | ||
<link rel="shortcut icon" href="favicon.png"> | ||
<link rel="stylesheet" href="css/variables.css"> | ||
<link rel="stylesheet" href="css/general.css"> | ||
<link rel="stylesheet" href="css/chrome.css"> | ||
<link rel="stylesheet" href="css/print.css" media="print"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="FontAwesome/css/font-awesome.css"> | ||
<link rel="stylesheet" href="fonts/fonts.css"> | ||
|
||
<!-- Highlight.js Stylesheets --> | ||
<link rel="stylesheet" href="highlight.css"> | ||
<link rel="stylesheet" href="tomorrow-night.css"> | ||
<link rel="stylesheet" href="ayu-highlight.css"> | ||
|
||
<!-- Custom theme stylesheets --> | ||
<link rel="stylesheet" href="asciinema/asciinema-player.css"> | ||
<link rel="stylesheet" href="./theme/catppuccin.css"> | ||
|
||
|
||
<!-- Provide site root to javascript --> | ||
<script> | ||
var path_to_root = ""; | ||
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "mocha" : "latte"; | ||
</script> | ||
<!-- Start loading toc.js asap --> | ||
<script src="toc.js"></script> | ||
</head> | ||
<body> | ||
<div id="body-container"> | ||
<!-- Work around some values being stored in localStorage wrapped in quotes --> | ||
<script> | ||
try { | ||
var theme = localStorage.getItem('mdbook-theme'); | ||
var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
|
||
if (theme.startsWith('"') && theme.endsWith('"')) { | ||
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
} | ||
|
||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
} | ||
} catch (e) { } | ||
</script> | ||
|
||
<!-- Set the theme before any content is loaded, prevents flash --> | ||
<script> | ||
var theme; | ||
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } | ||
if (theme === null || theme === undefined) { theme = default_theme; } | ||
const html = document.documentElement; | ||
html.classList.remove('latte') | ||
html.classList.add(theme); | ||
html.classList.add("js"); | ||
</script> | ||
|
||
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> | ||
|
||
<!-- Hide / unhide sidebar before it is displayed --> | ||
<script> | ||
var sidebar = null; | ||
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); | ||
if (document.body.clientWidth >= 1080) { | ||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } | ||
sidebar = sidebar || 'visible'; | ||
} else { | ||
sidebar = 'hidden'; | ||
} | ||
sidebar_toggle.checked = sidebar === 'visible'; | ||
html.classList.remove('sidebar-visible'); | ||
html.classList.add("sidebar-" + sidebar); | ||
</script> | ||
|
||
<nav id="sidebar" class="sidebar" aria-label="Table of contents"> | ||
<!-- populated by js --> | ||
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> | ||
<noscript> | ||
<iframe class="sidebar-iframe-outer" src="toc.html"></iframe> | ||
</noscript> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> | ||
<div class="left-buttons"> | ||
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> | ||
<i class="fa fa-bars"></i> | ||
</label> | ||
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> | ||
<i class="fa fa-paint-brush"></i> | ||
</button> | ||
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> | ||
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="latte">Latte</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="frappe">Frappé</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="macchiato">Macchiato</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="mocha">Mocha</button></li> | ||
</ul> | ||
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> | ||
<i class="fa fa-search"></i> | ||
</button> | ||
</div> | ||
|
||
<h1 class="menu-title">carapace-bin</h1> | ||
|
||
<div class="right-buttons"> | ||
<a href="print.html" title="Print this book" aria-label="Print this book"> | ||
<i id="print-button" class="fa fa-print"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin" title="Git repository" aria-label="Git repository"> | ||
<i id="git-repository-button" class="fa fa-github"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin/edit/master/docs/src/development.md" title="Suggest an edit" aria-label="Suggest an edit"> | ||
<i id="git-edit-button" class="fa fa-edit"></i> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="search-wrapper" class="hidden"> | ||
<form id="searchbar-outer" class="searchbar-outer"> | ||
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> | ||
</form> | ||
<div id="searchresults-outer" class="searchresults-outer hidden"> | ||
<div id="searchresults-header" class="searchresults-header"></div> | ||
<ul id="searchresults"> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> | ||
<script> | ||
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); | ||
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); | ||
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { | ||
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); | ||
}); | ||
</script> | ||
|
||
<div id="content" class="content"> | ||
<main> | ||
<h1 id="development"><a class="header" href="#development">Development</a></h1> | ||
|
||
</main> | ||
|
||
<nav class="nav-wrapper" aria-label="Page navigation"> | ||
<!-- Mobile navigation buttons --> | ||
<a rel="prev" href="variable/conditions.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="development/projectLayout.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
|
||
<div style="clear: both"></div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<nav class="nav-wide-wrapper" aria-label="Page navigation"> | ||
<a rel="prev" href="variable/conditions.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="development/projectLayout.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
</nav> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<script> | ||
window.playground_copyable = true; | ||
</script> | ||
|
||
|
||
<script src="elasticlunr.min.js"></script> | ||
<script src="mark.min.js"></script> | ||
<script src="searcher.js"></script> | ||
|
||
<script src="clipboard.min.js"></script> | ||
<script src="highlight.js"></script> | ||
<script src="book.js"></script> | ||
|
||
<!-- Custom JS scripts --> | ||
<script src="asciinema/asciinema-player.min.js"></script> | ||
<script src="asciinema/load.js"></script> | ||
|
||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,221 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en" class="latte sidebar-visible" dir="ltr"> | ||
<head> | ||
<!-- Book generated using mdBook --> | ||
<meta charset="UTF-8"> | ||
<title>Best Practices - carapace-bin</title> | ||
|
||
|
||
<!-- Custom HTML head --> | ||
|
||
<meta name="description" content="A multi-shell completion binary."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<link rel="icon" href="../favicon.svg"> | ||
<link rel="shortcut icon" href="../favicon.png"> | ||
<link rel="stylesheet" href="../css/variables.css"> | ||
<link rel="stylesheet" href="../css/general.css"> | ||
<link rel="stylesheet" href="../css/chrome.css"> | ||
<link rel="stylesheet" href="../css/print.css" media="print"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="../FontAwesome/css/font-awesome.css"> | ||
<link rel="stylesheet" href="../fonts/fonts.css"> | ||
|
||
<!-- Highlight.js Stylesheets --> | ||
<link rel="stylesheet" href="../highlight.css"> | ||
<link rel="stylesheet" href="../tomorrow-night.css"> | ||
<link rel="stylesheet" href="../ayu-highlight.css"> | ||
|
||
<!-- Custom theme stylesheets --> | ||
<link rel="stylesheet" href="../asciinema/asciinema-player.css"> | ||
<link rel="stylesheet" href=".././theme/catppuccin.css"> | ||
|
||
|
||
<!-- Provide site root to javascript --> | ||
<script> | ||
var path_to_root = "../"; | ||
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "mocha" : "latte"; | ||
</script> | ||
<!-- Start loading toc.js asap --> | ||
<script src="../toc.js"></script> | ||
</head> | ||
<body> | ||
<div id="body-container"> | ||
<!-- Work around some values being stored in localStorage wrapped in quotes --> | ||
<script> | ||
try { | ||
var theme = localStorage.getItem('mdbook-theme'); | ||
var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
|
||
if (theme.startsWith('"') && theme.endsWith('"')) { | ||
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
} | ||
|
||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
} | ||
} catch (e) { } | ||
</script> | ||
|
||
<!-- Set the theme before any content is loaded, prevents flash --> | ||
<script> | ||
var theme; | ||
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } | ||
if (theme === null || theme === undefined) { theme = default_theme; } | ||
const html = document.documentElement; | ||
html.classList.remove('latte') | ||
html.classList.add(theme); | ||
html.classList.add("js"); | ||
</script> | ||
|
||
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> | ||
|
||
<!-- Hide / unhide sidebar before it is displayed --> | ||
<script> | ||
var sidebar = null; | ||
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); | ||
if (document.body.clientWidth >= 1080) { | ||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } | ||
sidebar = sidebar || 'visible'; | ||
} else { | ||
sidebar = 'hidden'; | ||
} | ||
sidebar_toggle.checked = sidebar === 'visible'; | ||
html.classList.remove('sidebar-visible'); | ||
html.classList.add("sidebar-" + sidebar); | ||
</script> | ||
|
||
<nav id="sidebar" class="sidebar" aria-label="Table of contents"> | ||
<!-- populated by js --> | ||
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> | ||
<noscript> | ||
<iframe class="sidebar-iframe-outer" src="../toc.html"></iframe> | ||
</noscript> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> | ||
<div class="left-buttons"> | ||
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> | ||
<i class="fa fa-bars"></i> | ||
</label> | ||
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> | ||
<i class="fa fa-paint-brush"></i> | ||
</button> | ||
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> | ||
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="latte">Latte</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="frappe">Frappé</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="macchiato">Macchiato</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="mocha">Mocha</button></li> | ||
</ul> | ||
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> | ||
<i class="fa fa-search"></i> | ||
</button> | ||
</div> | ||
|
||
<h1 class="menu-title">carapace-bin</h1> | ||
|
||
<div class="right-buttons"> | ||
<a href="../print.html" title="Print this book" aria-label="Print this book"> | ||
<i id="print-button" class="fa fa-print"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin" title="Git repository" aria-label="Git repository"> | ||
<i id="git-repository-button" class="fa fa-github"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin/edit/master/docs/src/development/bestPractices.md" title="Suggest an edit" aria-label="Suggest an edit"> | ||
<i id="git-edit-button" class="fa fa-edit"></i> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="search-wrapper" class="hidden"> | ||
<form id="searchbar-outer" class="searchbar-outer"> | ||
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> | ||
</form> | ||
<div id="searchresults-outer" class="searchresults-outer hidden"> | ||
<div id="searchresults-header" class="searchresults-header"></div> | ||
<ul id="searchresults"> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> | ||
<script> | ||
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); | ||
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); | ||
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { | ||
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); | ||
}); | ||
</script> | ||
|
||
<div id="content" class="content"> | ||
<main> | ||
<h1 id="best-practices"><a class="header" href="#best-practices">Best Practices</a></h1> | ||
|
||
</main> | ||
|
||
<nav class="nav-wrapper" aria-label="Page navigation"> | ||
<!-- Mobile navigation buttons --> | ||
<a rel="prev" href="../development/updatingCompleters.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="../development/bestPractices/coupledActions.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
|
||
<div style="clear: both"></div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<nav class="nav-wide-wrapper" aria-label="Page navigation"> | ||
<a rel="prev" href="../development/updatingCompleters.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="../development/bestPractices/coupledActions.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
</nav> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<script> | ||
window.playground_copyable = true; | ||
</script> | ||
|
||
|
||
<script src="../elasticlunr.min.js"></script> | ||
<script src="../mark.min.js"></script> | ||
<script src="../searcher.js"></script> | ||
|
||
<script src="../clipboard.min.js"></script> | ||
<script src="../highlight.js"></script> | ||
<script src="../book.js"></script> | ||
|
||
<!-- Custom JS scripts --> | ||
<script src="../asciinema/asciinema-player.min.js"></script> | ||
<script src="../asciinema/load.js"></script> | ||
|
||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,250 @@ | ||
<!DOCTYPE HTML> | ||
<html lang="en" class="latte sidebar-visible" dir="ltr"> | ||
<head> | ||
<!-- Book generated using mdBook --> | ||
<meta charset="UTF-8"> | ||
<title>Coupled Actions - carapace-bin</title> | ||
|
||
|
||
<!-- Custom HTML head --> | ||
|
||
<meta name="description" content="A multi-shell completion binary."> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<meta name="theme-color" content="#ffffff"> | ||
|
||
<link rel="icon" href="../../favicon.svg"> | ||
<link rel="shortcut icon" href="../../favicon.png"> | ||
<link rel="stylesheet" href="../../css/variables.css"> | ||
<link rel="stylesheet" href="../../css/general.css"> | ||
<link rel="stylesheet" href="../../css/chrome.css"> | ||
<link rel="stylesheet" href="../../css/print.css" media="print"> | ||
|
||
<!-- Fonts --> | ||
<link rel="stylesheet" href="../../FontAwesome/css/font-awesome.css"> | ||
<link rel="stylesheet" href="../../fonts/fonts.css"> | ||
|
||
<!-- Highlight.js Stylesheets --> | ||
<link rel="stylesheet" href="../../highlight.css"> | ||
<link rel="stylesheet" href="../../tomorrow-night.css"> | ||
<link rel="stylesheet" href="../../ayu-highlight.css"> | ||
|
||
<!-- Custom theme stylesheets --> | ||
<link rel="stylesheet" href="../../asciinema/asciinema-player.css"> | ||
<link rel="stylesheet" href="../.././theme/catppuccin.css"> | ||
|
||
|
||
<!-- Provide site root to javascript --> | ||
<script> | ||
var path_to_root = "../../"; | ||
var default_theme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "mocha" : "latte"; | ||
</script> | ||
<!-- Start loading toc.js asap --> | ||
<script src="../../toc.js"></script> | ||
</head> | ||
<body> | ||
<div id="body-container"> | ||
<!-- Work around some values being stored in localStorage wrapped in quotes --> | ||
<script> | ||
try { | ||
var theme = localStorage.getItem('mdbook-theme'); | ||
var sidebar = localStorage.getItem('mdbook-sidebar'); | ||
|
||
if (theme.startsWith('"') && theme.endsWith('"')) { | ||
localStorage.setItem('mdbook-theme', theme.slice(1, theme.length - 1)); | ||
} | ||
|
||
if (sidebar.startsWith('"') && sidebar.endsWith('"')) { | ||
localStorage.setItem('mdbook-sidebar', sidebar.slice(1, sidebar.length - 1)); | ||
} | ||
} catch (e) { } | ||
</script> | ||
|
||
<!-- Set the theme before any content is loaded, prevents flash --> | ||
<script> | ||
var theme; | ||
try { theme = localStorage.getItem('mdbook-theme'); } catch(e) { } | ||
if (theme === null || theme === undefined) { theme = default_theme; } | ||
const html = document.documentElement; | ||
html.classList.remove('latte') | ||
html.classList.add(theme); | ||
html.classList.add("js"); | ||
</script> | ||
|
||
<input type="checkbox" id="sidebar-toggle-anchor" class="hidden"> | ||
|
||
<!-- Hide / unhide sidebar before it is displayed --> | ||
<script> | ||
var sidebar = null; | ||
var sidebar_toggle = document.getElementById("sidebar-toggle-anchor"); | ||
if (document.body.clientWidth >= 1080) { | ||
try { sidebar = localStorage.getItem('mdbook-sidebar'); } catch(e) { } | ||
sidebar = sidebar || 'visible'; | ||
} else { | ||
sidebar = 'hidden'; | ||
} | ||
sidebar_toggle.checked = sidebar === 'visible'; | ||
html.classList.remove('sidebar-visible'); | ||
html.classList.add("sidebar-" + sidebar); | ||
</script> | ||
|
||
<nav id="sidebar" class="sidebar" aria-label="Table of contents"> | ||
<!-- populated by js --> | ||
<mdbook-sidebar-scrollbox class="sidebar-scrollbox"></mdbook-sidebar-scrollbox> | ||
<noscript> | ||
<iframe class="sidebar-iframe-outer" src="../../toc.html"></iframe> | ||
</noscript> | ||
<div id="sidebar-resize-handle" class="sidebar-resize-handle"> | ||
<div class="sidebar-resize-indicator"></div> | ||
</div> | ||
</nav> | ||
|
||
<div id="page-wrapper" class="page-wrapper"> | ||
|
||
<div class="page"> | ||
<div id="menu-bar-hover-placeholder"></div> | ||
<div id="menu-bar" class="menu-bar sticky"> | ||
<div class="left-buttons"> | ||
<label id="sidebar-toggle" class="icon-button" for="sidebar-toggle-anchor" title="Toggle Table of Contents" aria-label="Toggle Table of Contents" aria-controls="sidebar"> | ||
<i class="fa fa-bars"></i> | ||
</label> | ||
<button id="theme-toggle" class="icon-button" type="button" title="Change theme" aria-label="Change theme" aria-haspopup="true" aria-expanded="false" aria-controls="theme-list"> | ||
<i class="fa fa-paint-brush"></i> | ||
</button> | ||
<ul id="theme-list" class="theme-popup" aria-label="Themes" role="menu"> | ||
<li role="none"><button role="menuitem" class="theme" id="light">Light</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="rust">Rust</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="coal">Coal</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="navy">Navy</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="ayu">Ayu</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="latte">Latte</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="frappe">Frappé</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="macchiato">Macchiato</button></li> | ||
<li role="none"><button role="menuitem" class="theme" id="mocha">Mocha</button></li> | ||
</ul> | ||
<button id="search-toggle" class="icon-button" type="button" title="Search. (Shortkey: s)" aria-label="Toggle Searchbar" aria-expanded="false" aria-keyshortcuts="S" aria-controls="searchbar"> | ||
<i class="fa fa-search"></i> | ||
</button> | ||
</div> | ||
|
||
<h1 class="menu-title">carapace-bin</h1> | ||
|
||
<div class="right-buttons"> | ||
<a href="../../print.html" title="Print this book" aria-label="Print this book"> | ||
<i id="print-button" class="fa fa-print"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin" title="Git repository" aria-label="Git repository"> | ||
<i id="git-repository-button" class="fa fa-github"></i> | ||
</a> | ||
<a href="https://github.com/carapace-sh/carapace-bin/edit/master/docs/src/development/bestPractices/coupledActions.md" title="Suggest an edit" aria-label="Suggest an edit"> | ||
<i id="git-edit-button" class="fa fa-edit"></i> | ||
</a> | ||
|
||
</div> | ||
</div> | ||
|
||
<div id="search-wrapper" class="hidden"> | ||
<form id="searchbar-outer" class="searchbar-outer"> | ||
<input type="search" id="searchbar" name="searchbar" placeholder="Search this book ..." aria-controls="searchresults-outer" aria-describedby="searchresults-header"> | ||
</form> | ||
<div id="searchresults-outer" class="searchresults-outer hidden"> | ||
<div id="searchresults-header" class="searchresults-header"></div> | ||
<ul id="searchresults"> | ||
</ul> | ||
</div> | ||
</div> | ||
|
||
<!-- Apply ARIA attributes after the sidebar and the sidebar toggle button are added to the DOM --> | ||
<script> | ||
document.getElementById('sidebar-toggle').setAttribute('aria-expanded', sidebar === 'visible'); | ||
document.getElementById('sidebar').setAttribute('aria-hidden', sidebar !== 'visible'); | ||
Array.from(document.querySelectorAll('#sidebar a')).forEach(function(link) { | ||
link.setAttribute('tabIndex', sidebar === 'visible' ? 0 : -1); | ||
}); | ||
</script> | ||
|
||
<div id="content" class="content"> | ||
<main> | ||
<h1 id="coupled-actions"><a class="header" href="#coupled-actions">Coupled Actions</a></h1> | ||
<p>Use coupled actions to avoid repetition.</p> | ||
<p>Sometimes an <a href="https://carapace-sh.github.io/carapace/carapace/action.html">Action</a> depends on the same flag values for multiple subcommands. | ||
Since <a href="https://carapace-sh.github.io/carapace/carapace/defaultActions/actionCallback.html">ActionCallback</a> is needed to access these the code can become a bit cumbersome and bloated.</p> | ||
<pre><code class="language-go">carapace.Gen(get_allCmd).PositionalCompletion( | ||
carapace.ActionCallback(func(c carapace.Context) carapace.Action { | ||
return helm.ActionReleases(helm.ReleasesOpts{ | ||
Namespace: rootCmd.Flag("namespace").Value.String(), | ||
KubeContext: rootCmd.Flag("kube-context").Value.String(), | ||
}) | ||
}), | ||
) | ||
</code></pre> | ||
<p>An alternative to this is creating a local <a href="https://carapace-sh.github.io/carapace/carapace/action.html">Action</a> that is coupled to the command. | ||
Meaning, passing it the command and expecting specific flags to be present.</p> | ||
<pre><code class="language-go">// completers/helm_completer/cmd/action/release.go | ||
func ActionReleases(cmd *cobra.Command) carapace.Action { | ||
return carapace.ActionCallback(func(c carapace.Context) carapace.Action { | ||
return helm.ActionReleases(helm.ReleasesOpts{ | ||
Namespace: cmd.Root().Flag("namespace").Value.String(), | ||
KubeContext: cmd.Root().Flag("kube-context").Value.String(), | ||
}) | ||
}) | ||
} | ||
</code></pre> | ||
<p>Thus the call becomes quite compact.</p> | ||
<pre><code class="language-go">carapace.Gen(get_allCmd).PositionalCompletion( | ||
action.ActionReleases(get_allCmd), | ||
) | ||
</code></pre> | ||
|
||
</main> | ||
|
||
<nav class="nav-wrapper" aria-label="Page navigation"> | ||
<!-- Mobile navigation buttons --> | ||
<a rel="prev" href="../../development/bestPractices.html" class="mobile-nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="../../development/tools.html" class="mobile-nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
|
||
<div style="clear: both"></div> | ||
</nav> | ||
</div> | ||
</div> | ||
|
||
<nav class="nav-wide-wrapper" aria-label="Page navigation"> | ||
<a rel="prev" href="../../development/bestPractices.html" class="nav-chapters previous" title="Previous chapter" aria-label="Previous chapter" aria-keyshortcuts="Left"> | ||
<i class="fa fa-angle-left"></i> | ||
</a> | ||
|
||
<a rel="next prefetch" href="../../development/tools.html" class="nav-chapters next" title="Next chapter" aria-label="Next chapter" aria-keyshortcuts="Right"> | ||
<i class="fa fa-angle-right"></i> | ||
</a> | ||
</nav> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
<script> | ||
window.playground_copyable = true; | ||
</script> | ||
|
||
|
||
<script src="../../elasticlunr.min.js"></script> | ||
<script src="../../mark.min.js"></script> | ||
<script src="../../searcher.js"></script> | ||
|
||
<script src="../../clipboard.min.js"></script> | ||
<script src="../../highlight.js"></script> | ||
<script src="../../book.js"></script> | ||
|
||
<!-- Custom JS scripts --> | ||
<script src="../../asciinema/asciinema-player.min.js"></script> | ||
<script src="../../asciinema/load.js"></script> | ||
|
||
|
||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
{"version": 2, "width": 108, "height": 24, "timestamp": 1708677841, "env": {"SHELL": "elvish", "TERM": "tmux-256color"}} | ||
[0.07467, "o", "\u001b[?7h\u001b[7m⏎\u001b[m \r \r\u001b[?7l\u001b[?2004h"] | ||
[0.075423, "o", "\u001b[?25l\r???> ???> \r\u001b[5C\u001b[?25h\u001b[?25l\r\r\u001b[5C\u001b[?25h"] | ||
[0.075796, "o", "\u001b[?25l\r\u001b[5C\u001b[K\r\u001b[5C\u001b[?25h\u001b[?25l\r\r\u001b[5C\u001b[?25h"] | ||
[0.076241, "o", "\u001b[?25l\r\r\u001b[5C\u001b[?25h\u001b[?25l\r\r\u001b[5C\u001b[?25h"] | ||
[0.096937, "o", "\u001b[?25l\r\r\u001b[5C\u001b[?25h"] | ||
[0.097142, "o", "\u001b[?25l\r\u001b[K\u001b[0;1;36mcarapace-bin\u001b[0;m on \u001b[0;1;35m doc-build\u001b[0;m via \u001b[0;1;36m🐹 v1.22.0 \r\n\u001b[0;1;37mesh\u001b[0;m \u001b[0;1;32m❯\u001b[0;m \r\u001b[6C\u001b[?25h"] | ||
[0.994403, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[0;31mc\u001b[0;m\r\u001b[7C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[0.995354, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[1.01928, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[1.061956, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[K\u001b[0;32mcd\u001b[0;m\r\u001b[8C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[8C\u001b[?25h"] | ||
[1.140686, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[8C \r\u001b[9C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[9C\u001b[?25h"] | ||
[1.43719, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[9Cc\r\u001b[10C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[10C\u001b[?25h"] | ||
[1.591946, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[10Cm\r\u001b[11C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[11C\u001b[?25h"] | ||
[1.835765, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[11Cd/\r\u001b[13C\u001b[?25h"] | ||
[2.181322, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[13Cc\r\u001b[14C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[14C\u001b[?25h"] | ||
[2.243389, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[14Ca\r\u001b[15C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[15C\u001b[?25h"] | ||
[2.387625, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[15Cr\r\u001b[16C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[16C\u001b[?25h"] | ||
[2.474062, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[16Ca\r\u001b[17C\u001b[?25h"] | ||
[2.474488, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[17C\u001b[?25h"] | ||
[2.475084, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[17C\u001b[?25h"] | ||
[2.475346, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[17C\u001b[?25h"] | ||
[2.475439, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[17C\u001b[?25h"] | ||
[2.673229, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[17Cpace\r\u001b[21C\u001b[?25h"] | ||
[3.613508, "o", "\u001b[?25l\u001b[1A\r\r\n\r\n\r\u001b[?25h\u001b[?7h\u001b[?2004l\r"] | ||
[3.629475, "o", "\u001b[?7h\u001b[7m⏎\u001b[m \r \r\u001b[?7l\u001b[?2004h"] | ||
[3.629867, "o", "\u001b[?25l\r\u001b[0;1;36mcarapace-bin\u001b[0;m on \u001b[0;1;35m doc-build\u001b[0;m via \u001b[0;1;36m🐹 v1.22.0 \r\n\u001b[0;1;37mesh\u001b[0;m \u001b[0;1;32m❯\u001b[0;m \r\u001b[6C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[3.631677, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[3.661782, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[3.661937, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[3.662016, "o", "\u001b[?25l\u001b[1A\r\u001b[12C\u001b[K\u001b[0;1;36m/cmd/carapace\u001b[0;m on \u001b[0;1;35m doc-build\u001b[0;m via \u001b[0;1;36m🐹 v1.22.0 \r\n\u001b[0;m\r\u001b[6C\u001b[?25h"] | ||
[4.363132, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[0;32mg\u001b[0;m\r\u001b[7C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[4.364016, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[4.388787, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[4.38901, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[4.401178, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[7C\u001b[0;32mo\u001b[0;m\r\u001b[8C\u001b[?25h"] | ||
[4.401239, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[8C\u001b[?25h"] | ||
[4.40128, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[8C\u001b[?25h"] | ||
[4.565078, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[8C \r\u001b[9C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[9C\u001b[?25h"] | ||
[4.745807, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[9Cg\r\u001b[10C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[10C\u001b[?25h"] | ||
[4.804389, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[10Ce\r\u001b[11C\u001b[?25h"] | ||
[4.804786, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[11C\u001b[?25h"] | ||
[4.933989, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[11Cn\r\u001b[12C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[12C\u001b[?25h"] | ||
[5.098791, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[12Cerate \r\u001b[18C\u001b[?25h"] | ||
[5.535419, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[18C.\r\u001b[19C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[19C\u001b[?25h"] | ||
[5.645514, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[19C/\r\u001b[20C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[20C\u001b[?25h"] | ||
[5.756611, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[20C.\r\u001b[21C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[21C\u001b[?25h"] | ||
[5.966345, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[21C.\r\u001b[22C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[22C\u001b[?25h"] | ||
[6.115609, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[22C.\r\u001b[23C\u001b[?25h"] | ||
[6.115756, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[23C\u001b[?25h"] | ||
[6.407695, "o", "\u001b[?25l\u001b[1A\r\r\n\r\n\r\u001b[?25h\u001b[?7h\u001b[?2004l\r"] | ||
[7.243915, "o", "\u001b[?7h\u001b[7m⏎\u001b[m \r \r\u001b[?7l\u001b[?2004h"] | ||
[7.24408, "o", "\u001b[?25l\r\u001b[0;1;36mcarapace-bin/cmd/carapace\u001b[0;m on \u001b[0;1;35m doc-build\u001b[0;m via \u001b[0;1;36m🐹 v1.22.0 \r\n\u001b[0;1;37mesh\u001b[0;m \u001b[0;1;32m❯\u001b[0;m \r\u001b[6C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[7.244159, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[7.268031, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[7.268226, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[7.863917, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[0;32mg\u001b[0;m\r\u001b[7C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[7.96573, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[7C\u001b[0;32mo\u001b[0;m\r\u001b[8C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[8C\u001b[?25h"] | ||
[8.074049, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[8C \r\u001b[9C\u001b[?25h"] | ||
[8.074644, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[9C\u001b[?25h"] | ||
[8.074692, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[9C\u001b[?25h"] | ||
[8.20356, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[9Ci\r\u001b[10C\u001b[?25h"] | ||
[8.266606, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[10Cn\r\u001b[11C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[11C\u001b[?25h"] | ||
[8.636639, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[11Cstall \r\u001b[17C\u001b[?25h"] | ||
[9.238487, "o", "\u001b[?25l\u001b[1A\r\r\n\r\n\r\u001b[?25h\u001b[?7h\u001b[?2004l\r"] | ||
[10.212961, "o", "\u001b[?7h\u001b[7m⏎\u001b[m \r \r\u001b[?7l\u001b[?2004h"] | ||
[10.213055, "o", "\u001b[?25l\r\u001b[0;1;36mcarapace-bin/cmd/carapace\u001b[0;m on \u001b[0;1;35m doc-build\u001b[0;m via \u001b[0;1;36m🐹 v1.22.0 \r\n\u001b[0;1;37mesh\u001b[0;m \u001b[0;1;32m❯\u001b[0;m \r\u001b[6C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[10.213527, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[10.236493, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[10.236592, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[10.710017, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[0;32mw\u001b[0;m\r\u001b[7C\u001b[?25h"] | ||
[10.710269, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[10.78272, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[K\u001b[0;31mwh\u001b[0;m\r\u001b[8C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[8C\u001b[?25h"] | ||
[10.841454, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[8C\u001b[0;31mi\u001b[0;m\r\u001b[9C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[9C\u001b[?25h"] | ||
[10.943613, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[9C\u001b[0;31mc\u001b[0;m\r\u001b[10C\u001b[?25h"] | ||
[10.943841, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[10C\u001b[?25h"] | ||
[11.023057, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[K\u001b[0;32mwhich\u001b[0;m\r\u001b[11C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[11C\u001b[?25h"] | ||
[11.151738, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[11C \r\u001b[12C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[12C\u001b[?25h"] | ||
[11.522564, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[12Cc\r\u001b[13C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[13C\u001b[?25h"] | ||
[11.602794, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[13Ca\r\u001b[14C\u001b[?25h"] | ||
[11.603397, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[14C\u001b[?25h"] | ||
[11.605956, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[14C\u001b[?25h"] | ||
[11.606074, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[14C\u001b[?25h"] | ||
[11.727, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[14Cr\r\u001b[15C\u001b[?25h"] | ||
[11.834051, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[15Ca\r\u001b[16C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[16C\u001b[?25h"] | ||
[12.158919, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[16Cp\r\u001b[17C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[17C\u001b[?25h"] | ||
[12.577364, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[17Cace\r\u001b[20C\u001b[?25h"] | ||
[13.000638, "o", "\u001b[?25l\u001b[1A\r\r\n\r\n\r\u001b[?25h\u001b[?7h\u001b[?2004l\r"] | ||
[13.058075, "o", "/home/rsteube/go/bin/carapace\r\n"] | ||
[13.058536, "o", "\u001b[?7h\u001b[7m⏎\u001b[m \r \r\u001b[?7l\u001b[?2004h"] | ||
[13.060452, "o", "\u001b[?25l\r\u001b[0;1;36mcarapace-bin/cmd/carapace\u001b[0;m on \u001b[0;1;35m doc-build\u001b[0;m via \u001b[0;1;36m🐹 v1.22.0 \r\n\u001b[0;1;37mesh\u001b[0;m \u001b[0;1;32m❯\u001b[0;m \r\u001b[6C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[13.061068, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[13.061904, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[13.086222, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[13.086369, "o", "\u001b[?25l\u001b[1A\r\r\n\r\u001b[6C\u001b[?25h"] | ||
[14.714919, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[0;31me\u001b[0;m\r\u001b[7C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[7C\u001b[?25h"] | ||
[14.93247, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[7C\u001b[0;31mx\u001b[0;m\r\u001b[8C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[8C\u001b[?25h"] | ||
[15.178505, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[8C\u001b[0;31mi\u001b[0;m\r\u001b[9C\u001b[?25h"] | ||
[15.301735, "o", "\u001b[?25l\u001b[1A\r\r\n\u001b[6C\u001b[K\u001b[0;32mexit\u001b[0;m\r\u001b[10C\u001b[?25h\u001b[?25l\u001b[1A\r\r\n\r\u001b[10C\u001b[?25h"] | ||
[16.366805, "o", "\u001b[?25l\u001b[1A\r\r\n\r\n\r\u001b[?25h\u001b[?7h\u001b[?2004l\r"] |
Oops, something went wrong.