docs: no more viv exe pip/python

This commit is contained in:
Daylin Morgan 2023-08-06 21:56:15 -05:00
parent 36c9706d76
commit 2b7f97ecc5
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F
4 changed files with 14 additions and 247 deletions

View file

@ -9,12 +9,6 @@
## exe
![cmd](./svgs/viv-exe-help.svg)
### exe python
![cmd](./svgs/viv-exe-python-help.svg)
### exe pip
![cmd](./svgs/viv-exe-pip-help.svg)
## remove
![cmd](./svgs/viv-remove-help.svg)

View file

@ -1,116 +0,0 @@
<svg class="rich-terminal shadow" viewBox="0 0 890.3333333333334 423.9333333333333" xmlns="http://www.w3.org/2000/svg">
<!-- Generated with Rich https://www.textualize.io & yartsu https://github.com/daylinmorgan/yartsu -->
<style>
@font-face {
font-family: "Fira Code";
src: local("FiraCode-Regular"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: "Fira Code";
src: local("FiraCode-Bold"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
font-style: bold;
font-weight: 700;
}
.terminal-3354443635-matrix {
font-family: Fira Code, monospace;
font-size: 20px;
line-height: 24.4px;
font-variant-east-asian: full-width;
}
.terminal-3354443635-title {
font-size: 18px;
font-weight: bold;
font-family: arial;
}
.shadow {
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
}
.terminal-3354443635-r1 { fill: #94e2d5;font-weight: bold }
.terminal-3354443635-r2 { fill: #c6d0f5 }
.terminal-3354443635-r3 { fill: #f9e2af;font-weight: bold }
</style>
<defs>
<clipPath id="terminal-3354443635-clip-terminal">
<rect x="0" y="0" width="853.0" height="340.59999999999997" />
</clipPath>
<clipPath id="terminal-3354443635-line-0">
<rect x="0" y="1.5" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-1">
<rect x="0" y="25.9" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-2">
<rect x="0" y="50.3" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-3">
<rect x="0" y="74.7" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-4">
<rect x="0" y="99.1" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-5">
<rect x="0" y="123.5" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-6">
<rect x="0" y="147.9" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-7">
<rect x="0" y="172.3" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-8">
<rect x="0" y="196.7" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-9">
<rect x="0" y="221.1" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-10">
<rect x="0" y="245.5" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-11">
<rect x="0" y="269.9" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-3354443635-line-12">
<rect x="0" y="294.3" width="854" height="24.65"/>
</clipPath>
</defs>
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="389.6" rx="8"/><text class="terminal-3354443635-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv&#160;exe&#160;pip&#160;--help</text>
<g transform="translate(32,22)">
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
<circle cx="44" cy="0" r="7" fill="#28c840"/>
</g>
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-3354443635-clip-terminal)">
<g class="terminal-3354443635-matrix">
<text class="terminal-3354443635-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-3354443635-line-0)">usage</text><text class="terminal-3354443635-r2" x="61" y="20" textLength="305" clip-path="url(#terminal-3354443635-line-0)">:&#160;viv&#160;exe&#160;[-h]&#160;vivenv&#160;cmd</text><text class="terminal-3354443635-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-3354443635-line-0)">
</text><text class="terminal-3354443635-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-3354443635-line-1)">
</text><text class="terminal-3354443635-r2" x="0" y="68.8" textLength="439.2" clip-path="url(#terminal-3354443635-line-2)">run&#160;binary/script&#160;in&#160;existing&#160;vivenv</text><text class="terminal-3354443635-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-3354443635-line-2)">
</text><text class="terminal-3354443635-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-3354443635-line-3)">
</text><text class="terminal-3354443635-r2" x="0" y="117.6" textLength="109.8" clip-path="url(#terminal-3354443635-line-4)">examples:</text><text class="terminal-3354443635-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-3354443635-line-4)">
</text><text class="terminal-3354443635-r2" x="0" y="142" textLength="488" clip-path="url(#terminal-3354443635-line-5)">&#160;&#160;&#160;&#160;viv&#160;exe&#160;&lt;vivenv&gt;&#160;python&#160;--&#160;script.py</text><text class="terminal-3354443635-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-3354443635-line-5)">
</text><text class="terminal-3354443635-r2" x="0" y="166.4" textLength="549" clip-path="url(#terminal-3354443635-line-6)">&#160;&#160;&#160;&#160;viv&#160;exe&#160;&lt;vivenv&gt;&#160;python&#160;--&#160;-m&#160;http.server</text><text class="terminal-3354443635-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-3354443635-line-6)">
</text><text class="terminal-3354443635-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-3354443635-line-7)">
</text><text class="terminal-3354443635-r1" x="0" y="215.2" textLength="244" clip-path="url(#terminal-3354443635-line-8)">positional&#160;arguments</text><text class="terminal-3354443635-r2" x="244" y="215.2" textLength="12.2" clip-path="url(#terminal-3354443635-line-8)">:</text><text class="terminal-3354443635-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-3354443635-line-8)">
</text><text class="terminal-3354443635-r3" x="24.4" y="239.6" textLength="73.2" clip-path="url(#terminal-3354443635-line-9)">vivenv</text><text class="terminal-3354443635-r2" x="97.6" y="239.6" textLength="329.4" clip-path="url(#terminal-3354443635-line-9)">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;name/hash&#160;of&#160;vivenv</text><text class="terminal-3354443635-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-3354443635-line-9)">
</text><text class="terminal-3354443635-r3" x="24.4" y="264" textLength="36.6" clip-path="url(#terminal-3354443635-line-10)">cmd</text><text class="terminal-3354443635-r2" x="61" y="264" textLength="390.4" clip-path="url(#terminal-3354443635-line-10)">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;command&#160;to&#160;to&#160;execute</text><text class="terminal-3354443635-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-3354443635-line-10)">
</text><text class="terminal-3354443635-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-3354443635-line-11)">
</text><text class="terminal-3354443635-r1" x="0" y="312.8" textLength="85.4" clip-path="url(#terminal-3354443635-line-12)">options</text><text class="terminal-3354443635-r2" x="85.4" y="312.8" textLength="12.2" clip-path="url(#terminal-3354443635-line-12)">:</text><text class="terminal-3354443635-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-3354443635-line-12)">
</text><text class="terminal-3354443635-r3" x="24.4" y="337.2" textLength="24.4" clip-path="url(#terminal-3354443635-line-13)">-h</text><text class="terminal-3354443635-r2" x="48.8" y="337.2" textLength="24.4" clip-path="url(#terminal-3354443635-line-13)">,&#160;</text><text class="terminal-3354443635-r3" x="73.2" y="337.2" textLength="73.2" clip-path="url(#terminal-3354443635-line-13)">--help</text><text class="terminal-3354443635-r2" x="146.4" y="337.2" textLength="427" clip-path="url(#terminal-3354443635-line-13)">&#160;&#160;&#160;&#160;show&#160;this&#160;help&#160;message&#160;and&#160;exit</text><text class="terminal-3354443635-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-3354443635-line-13)">
</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.5 KiB

View file

@ -1,116 +0,0 @@
<svg class="rich-terminal shadow" viewBox="0 0 890.3333333333334 423.9333333333333" xmlns="http://www.w3.org/2000/svg">
<!-- Generated with Rich https://www.textualize.io & yartsu https://github.com/daylinmorgan/yartsu -->
<style>
@font-face {
font-family: "Fira Code";
src: local("FiraCode-Regular"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Regular.woff2") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Regular.woff") format("woff");
font-style: normal;
font-weight: 400;
}
@font-face {
font-family: "Fira Code";
src: local("FiraCode-Bold"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff2/FiraCode-Bold.woff2") format("woff2"),
url("https://cdnjs.cloudflare.com/ajax/libs/firacode/6.2.0/woff/FiraCode-Bold.woff") format("woff");
font-style: bold;
font-weight: 700;
}
.terminal-207667404-matrix {
font-family: Fira Code, monospace;
font-size: 20px;
line-height: 24.4px;
font-variant-east-asian: full-width;
}
.terminal-207667404-title {
font-size: 18px;
font-weight: bold;
font-family: arial;
}
.shadow {
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
}
.terminal-207667404-r1 { fill: #94e2d5;font-weight: bold }
.terminal-207667404-r2 { fill: #c6d0f5 }
.terminal-207667404-r3 { fill: #f9e2af;font-weight: bold }
</style>
<defs>
<clipPath id="terminal-207667404-clip-terminal">
<rect x="0" y="0" width="853.0" height="340.59999999999997" />
</clipPath>
<clipPath id="terminal-207667404-line-0">
<rect x="0" y="1.5" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-1">
<rect x="0" y="25.9" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-2">
<rect x="0" y="50.3" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-3">
<rect x="0" y="74.7" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-4">
<rect x="0" y="99.1" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-5">
<rect x="0" y="123.5" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-6">
<rect x="0" y="147.9" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-7">
<rect x="0" y="172.3" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-8">
<rect x="0" y="196.7" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-9">
<rect x="0" y="221.1" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-10">
<rect x="0" y="245.5" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-11">
<rect x="0" y="269.9" width="854" height="24.65"/>
</clipPath>
<clipPath id="terminal-207667404-line-12">
<rect x="0" y="294.3" width="854" height="24.65"/>
</clipPath>
</defs>
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="389.6" rx="8"/><text class="terminal-207667404-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv&#160;exe&#160;python&#160;--help</text>
<g transform="translate(32,22)">
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
<circle cx="44" cy="0" r="7" fill="#28c840"/>
</g>
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-207667404-clip-terminal)">
<g class="terminal-207667404-matrix">
<text class="terminal-207667404-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-207667404-line-0)">usage</text><text class="terminal-207667404-r2" x="61" y="20" textLength="305" clip-path="url(#terminal-207667404-line-0)">:&#160;viv&#160;exe&#160;[-h]&#160;vivenv&#160;cmd</text><text class="terminal-207667404-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-207667404-line-0)">
</text><text class="terminal-207667404-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-207667404-line-1)">
</text><text class="terminal-207667404-r2" x="0" y="68.8" textLength="439.2" clip-path="url(#terminal-207667404-line-2)">run&#160;binary/script&#160;in&#160;existing&#160;vivenv</text><text class="terminal-207667404-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-207667404-line-2)">
</text><text class="terminal-207667404-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-207667404-line-3)">
</text><text class="terminal-207667404-r2" x="0" y="117.6" textLength="109.8" clip-path="url(#terminal-207667404-line-4)">examples:</text><text class="terminal-207667404-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-207667404-line-4)">
</text><text class="terminal-207667404-r2" x="0" y="142" textLength="488" clip-path="url(#terminal-207667404-line-5)">&#160;&#160;&#160;&#160;viv&#160;exe&#160;&lt;vivenv&gt;&#160;python&#160;--&#160;script.py</text><text class="terminal-207667404-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-207667404-line-5)">
</text><text class="terminal-207667404-r2" x="0" y="166.4" textLength="549" clip-path="url(#terminal-207667404-line-6)">&#160;&#160;&#160;&#160;viv&#160;exe&#160;&lt;vivenv&gt;&#160;python&#160;--&#160;-m&#160;http.server</text><text class="terminal-207667404-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-207667404-line-6)">
</text><text class="terminal-207667404-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-207667404-line-7)">
</text><text class="terminal-207667404-r1" x="0" y="215.2" textLength="244" clip-path="url(#terminal-207667404-line-8)">positional&#160;arguments</text><text class="terminal-207667404-r2" x="244" y="215.2" textLength="12.2" clip-path="url(#terminal-207667404-line-8)">:</text><text class="terminal-207667404-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-207667404-line-8)">
</text><text class="terminal-207667404-r3" x="24.4" y="239.6" textLength="73.2" clip-path="url(#terminal-207667404-line-9)">vivenv</text><text class="terminal-207667404-r2" x="97.6" y="239.6" textLength="329.4" clip-path="url(#terminal-207667404-line-9)">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;name/hash&#160;of&#160;vivenv</text><text class="terminal-207667404-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-207667404-line-9)">
</text><text class="terminal-207667404-r3" x="24.4" y="264" textLength="36.6" clip-path="url(#terminal-207667404-line-10)">cmd</text><text class="terminal-207667404-r2" x="61" y="264" textLength="390.4" clip-path="url(#terminal-207667404-line-10)">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;command&#160;to&#160;to&#160;execute</text><text class="terminal-207667404-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-207667404-line-10)">
</text><text class="terminal-207667404-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-207667404-line-11)">
</text><text class="terminal-207667404-r1" x="0" y="312.8" textLength="85.4" clip-path="url(#terminal-207667404-line-12)">options</text><text class="terminal-207667404-r2" x="85.4" y="312.8" textLength="12.2" clip-path="url(#terminal-207667404-line-12)">:</text><text class="terminal-207667404-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-207667404-line-12)">
</text><text class="terminal-207667404-r3" x="24.4" y="337.2" textLength="24.4" clip-path="url(#terminal-207667404-line-13)">-h</text><text class="terminal-207667404-r2" x="48.8" y="337.2" textLength="24.4" clip-path="url(#terminal-207667404-line-13)">,&#160;</text><text class="terminal-207667404-r3" x="73.2" y="337.2" textLength="73.2" clip-path="url(#terminal-207667404-line-13)">--help</text><text class="terminal-207667404-r2" x="146.4" y="337.2" textLength="427" clip-path="url(#terminal-207667404-line-13)">&#160;&#160;&#160;&#160;show&#160;this&#160;help&#160;message&#160;and&#160;exit</text><text class="terminal-207667404-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-207667404-line-13)">
</text>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 8.4 KiB

View file

@ -11,15 +11,20 @@ VIV = Path(__file__).parent.parent / "src" / "viv" / "viv.py"
CLI_DOC_PATH = DOCS_PATH / "cli.md"
cmds = {
"list": [],
"exe": ["python", "pip"],
"remove": [],
"manage": ["update", "purge", "show", "install"],
"freeze": [],
"shim": [],
"run": [],
}
(
cmds := dict.fromkeys(
(
"list",
"exe",
"remove",
"manage",
"freeze",
"shim",
"run",
),
[],
)
).update({"manage": ["update", "purge", "show", "install"]})
cli_doc = """