Compare commits
9 commits
ccccbbb147
...
e70afb3eac
Author | SHA1 | Date | |
---|---|---|---|
e70afb3eac | |||
853e6e63ae | |||
1b180d5b0b | |||
4188742e29 | |||
bbf078a0a5 | |||
439d5292c1 | |||
993e0e699b | |||
6c2bb1b84f | |||
f069eafb11 |
11
README.md
|
@ -1,12 +1,17 @@
|
||||||
# viv
|
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
<a href="https://github.com/daylinmorgan/viv">
|
<a href="https://github.com/daylinmorgan/viv">
|
||||||
<img src="https://raw.githubusercontent.com/daylinmorgan/viv/main/assets/logo.svg" alt="Logo" width=500 >
|
<img src="https://raw.githubusercontent.com/daylinmorgan/viv/main/assets/logo.svg" alt="Logo" width=500 >
|
||||||
</a>
|
</a>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
viv isn't venv
|
<h1> viv isn't venv </h1>
|
||||||
</p>
|
</p>
|
||||||
|
<div align="center">
|
||||||
|
<img
|
||||||
|
src="https://raw.githubusercontent.com/daylinmorgan/viv/main/docs/svgs/viv-help.svg"
|
||||||
|
alt="cli screenshot"
|
||||||
|
width="500"
|
||||||
|
>
|
||||||
|
</div>
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<a href="https://viv.dayl.in">Documentation</a>
|
<a href="https://viv.dayl.in">Documentation</a>
|
||||||
</p>
|
</p>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<svg class="rich-terminal shadow" viewBox="0 0 890.3333333333334 350.7333333333333" xmlns="http://www.w3.org/2000/svg">
|
<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 -->
|
<!-- Generated with Rich https://www.textualize.io & yartsu https://github.com/daylinmorgan/yartsu -->
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
@ -19,14 +19,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-2684787815-matrix {
|
.terminal-2174466350-matrix {
|
||||||
font-family: Fira Code, monospace;
|
font-family: Fira Code, monospace;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 24.4px;
|
line-height: 24.4px;
|
||||||
font-variant-east-asian: full-width;
|
font-variant-east-asian: full-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-2684787815-title {
|
.terminal-2174466350-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: arial;
|
font-family: arial;
|
||||||
|
@ -36,68 +36,80 @@
|
||||||
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
}
|
}
|
||||||
.terminal-2684787815-r1 { fill: #94e2d5;font-weight: bold }
|
.terminal-2174466350-r1 { fill: #94e2d5;font-weight: bold }
|
||||||
.terminal-2684787815-r2 { fill: #c6d0f5 }
|
.terminal-2174466350-r2 { fill: #c6d0f5 }
|
||||||
.terminal-2684787815-r3 { fill: #f9e2af;font-weight: bold }
|
.terminal-2174466350-r3 { fill: #f9e2af;font-weight: bold }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<defs>
|
<defs>
|
||||||
<clipPath id="terminal-2684787815-clip-terminal">
|
<clipPath id="terminal-2174466350-clip-terminal">
|
||||||
<rect x="0" y="0" width="853.0" height="267.4" />
|
<rect x="0" y="0" width="853.0" height="340.59999999999997" />
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-0">
|
<clipPath id="terminal-2174466350-line-0">
|
||||||
<rect x="0" y="1.5" width="854" height="24.65"/>
|
<rect x="0" y="1.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-1">
|
<clipPath id="terminal-2174466350-line-1">
|
||||||
<rect x="0" y="25.9" width="854" height="24.65"/>
|
<rect x="0" y="25.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-2">
|
<clipPath id="terminal-2174466350-line-2">
|
||||||
<rect x="0" y="50.3" width="854" height="24.65"/>
|
<rect x="0" y="50.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-3">
|
<clipPath id="terminal-2174466350-line-3">
|
||||||
<rect x="0" y="74.7" width="854" height="24.65"/>
|
<rect x="0" y="74.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-4">
|
<clipPath id="terminal-2174466350-line-4">
|
||||||
<rect x="0" y="99.1" width="854" height="24.65"/>
|
<rect x="0" y="99.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-5">
|
<clipPath id="terminal-2174466350-line-5">
|
||||||
<rect x="0" y="123.5" width="854" height="24.65"/>
|
<rect x="0" y="123.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-6">
|
<clipPath id="terminal-2174466350-line-6">
|
||||||
<rect x="0" y="147.9" width="854" height="24.65"/>
|
<rect x="0" y="147.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-7">
|
<clipPath id="terminal-2174466350-line-7">
|
||||||
<rect x="0" y="172.3" width="854" height="24.65"/>
|
<rect x="0" y="172.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-8">
|
<clipPath id="terminal-2174466350-line-8">
|
||||||
<rect x="0" y="196.7" width="854" height="24.65"/>
|
<rect x="0" y="196.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2684787815-line-9">
|
<clipPath id="terminal-2174466350-line-9">
|
||||||
<rect x="0" y="221.1" width="854" height="24.65"/>
|
<rect x="0" y="221.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2174466350-line-10">
|
||||||
|
<rect x="0" y="245.5" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2174466350-line-11">
|
||||||
|
<rect x="0" y="269.9" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2174466350-line-12">
|
||||||
|
<rect x="0" y="294.3" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="316.4" rx="8"/><text class="terminal-2684787815-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv exe --help</text>
|
<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-2174466350-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv exe --help</text>
|
||||||
<g transform="translate(32,22)">
|
<g transform="translate(32,22)">
|
||||||
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
||||||
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
||||||
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-2684787815-clip-terminal)">
|
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-2174466350-clip-terminal)">
|
||||||
|
|
||||||
<g class="terminal-2684787815-matrix">
|
<g class="terminal-2174466350-matrix">
|
||||||
<text class="terminal-2684787815-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-2684787815-line-0)">usage</text><text class="terminal-2684787815-r2" x="61" y="20" textLength="341.6" clip-path="url(#terminal-2684787815-line-0)">: viv exe [-h] <sub-cmd> ...</text><text class="terminal-2684787815-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-2684787815-line-0)">
|
<text class="terminal-2174466350-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-2174466350-line-0)">usage</text><text class="terminal-2174466350-r2" x="61" y="20" textLength="305" clip-path="url(#terminal-2174466350-line-0)">: viv exe [-h] vivenv cmd</text><text class="terminal-2174466350-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-2174466350-line-0)">
|
||||||
</text><text class="terminal-2684787815-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-2684787815-line-1)">
|
</text><text class="terminal-2174466350-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-2174466350-line-1)">
|
||||||
</text><text class="terminal-2684787815-r2" x="0" y="68.8" textLength="402.6" clip-path="url(#terminal-2684787815-line-2)">run python/pip in existing vivenv</text><text class="terminal-2684787815-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-2684787815-line-2)">
|
</text><text class="terminal-2174466350-r2" x="0" y="68.8" textLength="439.2" clip-path="url(#terminal-2174466350-line-2)">run binary/script in existing vivenv</text><text class="terminal-2174466350-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-2174466350-line-2)">
|
||||||
</text><text class="terminal-2684787815-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-2684787815-line-3)">
|
</text><text class="terminal-2174466350-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-2174466350-line-3)">
|
||||||
</text><text class="terminal-2684787815-r1" x="0" y="117.6" textLength="85.4" clip-path="url(#terminal-2684787815-line-4)">options</text><text class="terminal-2684787815-r2" x="85.4" y="117.6" textLength="12.2" clip-path="url(#terminal-2684787815-line-4)">:</text><text class="terminal-2684787815-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-2684787815-line-4)">
|
</text><text class="terminal-2174466350-r2" x="0" y="117.6" textLength="109.8" clip-path="url(#terminal-2174466350-line-4)">examples:</text><text class="terminal-2174466350-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-2174466350-line-4)">
|
||||||
</text><text class="terminal-2684787815-r3" x="24.4" y="142" textLength="24.4" clip-path="url(#terminal-2684787815-line-5)">-h</text><text class="terminal-2684787815-r2" x="48.8" y="142" textLength="24.4" clip-path="url(#terminal-2684787815-line-5)">, </text><text class="terminal-2684787815-r3" x="73.2" y="142" textLength="73.2" clip-path="url(#terminal-2684787815-line-5)">--help</text><text class="terminal-2684787815-r2" x="146.4" y="142" textLength="427" clip-path="url(#terminal-2684787815-line-5)">    show this help message and exit</text><text class="terminal-2684787815-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-2684787815-line-5)">
|
</text><text class="terminal-2174466350-r2" x="0" y="142" textLength="390.4" clip-path="url(#terminal-2174466350-line-5)">    viv exe <vivenv> pip -- list</text><text class="terminal-2174466350-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-2174466350-line-5)">
|
||||||
</text><text class="terminal-2684787815-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-2684787815-line-6)">
|
</text><text class="terminal-2174466350-r2" x="0" y="166.4" textLength="488" clip-path="url(#terminal-2174466350-line-6)">    viv exe <vivenv> python -- script.py</text><text class="terminal-2174466350-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-2174466350-line-6)">
|
||||||
</text><text class="terminal-2684787815-r1" x="0" y="190.8" textLength="122" clip-path="url(#terminal-2684787815-line-7)">subcommand</text><text class="terminal-2684787815-r2" x="122" y="190.8" textLength="12.2" clip-path="url(#terminal-2684787815-line-7)">:</text><text class="terminal-2684787815-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-2684787815-line-7)">
|
</text><text class="terminal-2174466350-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-2174466350-line-7)">
|
||||||
</text><text class="terminal-2684787815-r3" x="24.4" y="215.2" textLength="109.8" clip-path="url(#terminal-2684787815-line-8)"><sub-cmd></text><text class="terminal-2684787815-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-2684787815-line-8)">
|
</text><text class="terminal-2174466350-r1" x="0" y="215.2" textLength="244" clip-path="url(#terminal-2174466350-line-8)">positional arguments</text><text class="terminal-2174466350-r2" x="244" y="215.2" textLength="12.2" clip-path="url(#terminal-2174466350-line-8)">:</text><text class="terminal-2174466350-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-2174466350-line-8)">
|
||||||
</text><text class="terminal-2684787815-r3" x="48.8" y="239.6" textLength="36.6" clip-path="url(#terminal-2684787815-line-9)">pip</text><text class="terminal-2684787815-r2" x="85.4" y="239.6" textLength="305" clip-path="url(#terminal-2684787815-line-9)">         run cmd with pip</text><text class="terminal-2684787815-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-2684787815-line-9)">
|
</text><text class="terminal-2174466350-r3" x="24.4" y="239.6" textLength="73.2" clip-path="url(#terminal-2174466350-line-9)">vivenv</text><text class="terminal-2174466350-r2" x="97.6" y="239.6" textLength="329.4" clip-path="url(#terminal-2174466350-line-9)">        name/hash of vivenv</text><text class="terminal-2174466350-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-2174466350-line-9)">
|
||||||
</text><text class="terminal-2684787815-r3" x="48.8" y="264" textLength="73.2" clip-path="url(#terminal-2684787815-line-10)">python</text><text class="terminal-2684787815-r2" x="122" y="264" textLength="305" clip-path="url(#terminal-2684787815-line-10)">      run cmd with python</text><text class="terminal-2684787815-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-2684787815-line-10)">
|
</text><text class="terminal-2174466350-r3" x="24.4" y="264" textLength="36.6" clip-path="url(#terminal-2174466350-line-10)">cmd</text><text class="terminal-2174466350-r2" x="61" y="264" textLength="390.4" clip-path="url(#terminal-2174466350-line-10)">           command to to execute</text><text class="terminal-2174466350-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-2174466350-line-10)">
|
||||||
|
</text><text class="terminal-2174466350-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-2174466350-line-11)">
|
||||||
|
</text><text class="terminal-2174466350-r1" x="0" y="312.8" textLength="85.4" clip-path="url(#terminal-2174466350-line-12)">options</text><text class="terminal-2174466350-r2" x="85.4" y="312.8" textLength="12.2" clip-path="url(#terminal-2174466350-line-12)">:</text><text class="terminal-2174466350-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-2174466350-line-12)">
|
||||||
|
</text><text class="terminal-2174466350-r3" x="24.4" y="337.2" textLength="24.4" clip-path="url(#terminal-2174466350-line-13)">-h</text><text class="terminal-2174466350-r2" x="48.8" y="337.2" textLength="24.4" clip-path="url(#terminal-2174466350-line-13)">, </text><text class="terminal-2174466350-r3" x="73.2" y="337.2" textLength="73.2" clip-path="url(#terminal-2174466350-line-13)">--help</text><text class="terminal-2174466350-r2" x="146.4" y="337.2" textLength="427" clip-path="url(#terminal-2174466350-line-13)">    show this help message and exit</text><text class="terminal-2174466350-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-2174466350-line-13)">
|
||||||
</text>
|
</text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 8.5 KiB |
|
@ -1,4 +1,4 @@
|
||||||
<svg class="rich-terminal shadow" viewBox="0 0 890.3333333333334 277.5333333333333" xmlns="http://www.w3.org/2000/svg">
|
<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 -->
|
<!-- Generated with Rich https://www.textualize.io & yartsu https://github.com/daylinmorgan/yartsu -->
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
@ -19,14 +19,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-2240111166-matrix {
|
.terminal-1793440407-matrix {
|
||||||
font-family: Fira Code, monospace;
|
font-family: Fira Code, monospace;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 24.4px;
|
line-height: 24.4px;
|
||||||
font-variant-east-asian: full-width;
|
font-variant-east-asian: full-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-2240111166-title {
|
.terminal-1793440407-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: arial;
|
font-family: arial;
|
||||||
|
@ -36,56 +36,80 @@
|
||||||
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
}
|
}
|
||||||
.terminal-2240111166-r1 { fill: #94e2d5;font-weight: bold }
|
.terminal-1793440407-r1 { fill: #94e2d5;font-weight: bold }
|
||||||
.terminal-2240111166-r2 { fill: #c6d0f5 }
|
.terminal-1793440407-r2 { fill: #c6d0f5 }
|
||||||
.terminal-2240111166-r3 { fill: #f9e2af;font-weight: bold }
|
.terminal-1793440407-r3 { fill: #f9e2af;font-weight: bold }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<defs>
|
<defs>
|
||||||
<clipPath id="terminal-2240111166-clip-terminal">
|
<clipPath id="terminal-1793440407-clip-terminal">
|
||||||
<rect x="0" y="0" width="853.0" height="194.2" />
|
<rect x="0" y="0" width="853.0" height="340.59999999999997" />
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-0">
|
<clipPath id="terminal-1793440407-line-0">
|
||||||
<rect x="0" y="1.5" width="854" height="24.65"/>
|
<rect x="0" y="1.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-1">
|
<clipPath id="terminal-1793440407-line-1">
|
||||||
<rect x="0" y="25.9" width="854" height="24.65"/>
|
<rect x="0" y="25.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-2">
|
<clipPath id="terminal-1793440407-line-2">
|
||||||
<rect x="0" y="50.3" width="854" height="24.65"/>
|
<rect x="0" y="50.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-3">
|
<clipPath id="terminal-1793440407-line-3">
|
||||||
<rect x="0" y="74.7" width="854" height="24.65"/>
|
<rect x="0" y="74.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-4">
|
<clipPath id="terminal-1793440407-line-4">
|
||||||
<rect x="0" y="99.1" width="854" height="24.65"/>
|
<rect x="0" y="99.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-5">
|
<clipPath id="terminal-1793440407-line-5">
|
||||||
<rect x="0" y="123.5" width="854" height="24.65"/>
|
<rect x="0" y="123.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-2240111166-line-6">
|
<clipPath id="terminal-1793440407-line-6">
|
||||||
<rect x="0" y="147.9" width="854" height="24.65"/>
|
<rect x="0" y="147.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
<clipPath id="terminal-1793440407-line-7">
|
||||||
|
<rect x="0" y="172.3" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-1793440407-line-8">
|
||||||
|
<rect x="0" y="196.7" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-1793440407-line-9">
|
||||||
|
<rect x="0" y="221.1" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-1793440407-line-10">
|
||||||
|
<rect x="0" y="245.5" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-1793440407-line-11">
|
||||||
|
<rect x="0" y="269.9" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-1793440407-line-12">
|
||||||
|
<rect x="0" y="294.3" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="243.2" rx="8"/><text class="terminal-2240111166-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv exe pip --help</text>
|
<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-1793440407-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv exe pip --help</text>
|
||||||
<g transform="translate(32,22)">
|
<g transform="translate(32,22)">
|
||||||
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
||||||
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
||||||
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-2240111166-clip-terminal)">
|
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-1793440407-clip-terminal)">
|
||||||
|
|
||||||
<g class="terminal-2240111166-matrix">
|
<g class="terminal-1793440407-matrix">
|
||||||
<text class="terminal-2240111166-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-2240111166-line-0)">usage</text><text class="terminal-2240111166-r2" x="61" y="20" textLength="427" clip-path="url(#terminal-2240111166-line-0)">: viv exe pip [-h] vivenv [cmd ...]</text><text class="terminal-2240111166-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-2240111166-line-0)">
|
<text class="terminal-1793440407-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-1793440407-line-0)">usage</text><text class="terminal-1793440407-r2" x="61" y="20" textLength="305" clip-path="url(#terminal-1793440407-line-0)">: viv exe [-h] vivenv cmd</text><text class="terminal-1793440407-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-1793440407-line-0)">
|
||||||
</text><text class="terminal-2240111166-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-2240111166-line-1)">
|
</text><text class="terminal-1793440407-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-1793440407-line-1)">
|
||||||
</text><text class="terminal-2240111166-r1" x="0" y="68.8" textLength="244" clip-path="url(#terminal-2240111166-line-2)">positional arguments</text><text class="terminal-2240111166-r2" x="244" y="68.8" textLength="12.2" clip-path="url(#terminal-2240111166-line-2)">:</text><text class="terminal-2240111166-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-2240111166-line-2)">
|
</text><text class="terminal-1793440407-r2" x="0" y="68.8" textLength="439.2" clip-path="url(#terminal-1793440407-line-2)">run binary/script in existing vivenv</text><text class="terminal-1793440407-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-1793440407-line-2)">
|
||||||
</text><text class="terminal-2240111166-r3" x="24.4" y="93.2" textLength="73.2" clip-path="url(#terminal-2240111166-line-3)">vivenv</text><text class="terminal-2240111166-r2" x="97.6" y="93.2" textLength="329.4" clip-path="url(#terminal-2240111166-line-3)">        name/hash of vivenv</text><text class="terminal-2240111166-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-2240111166-line-3)">
|
</text><text class="terminal-1793440407-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-1793440407-line-3)">
|
||||||
</text><text class="terminal-2240111166-r3" x="24.4" y="117.6" textLength="36.6" clip-path="url(#terminal-2240111166-line-4)">cmd</text><text class="terminal-2240111166-r2" x="61" y="117.6" textLength="390.4" clip-path="url(#terminal-2240111166-line-4)">           command to to execute</text><text class="terminal-2240111166-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-2240111166-line-4)">
|
</text><text class="terminal-1793440407-r2" x="0" y="117.6" textLength="109.8" clip-path="url(#terminal-1793440407-line-4)">examples:</text><text class="terminal-1793440407-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-1793440407-line-4)">
|
||||||
</text><text class="terminal-2240111166-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-2240111166-line-5)">
|
</text><text class="terminal-1793440407-r2" x="0" y="142" textLength="390.4" clip-path="url(#terminal-1793440407-line-5)">    viv exe <vivenv> pip -- list</text><text class="terminal-1793440407-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-1793440407-line-5)">
|
||||||
</text><text class="terminal-2240111166-r1" x="0" y="166.4" textLength="85.4" clip-path="url(#terminal-2240111166-line-6)">options</text><text class="terminal-2240111166-r2" x="85.4" y="166.4" textLength="12.2" clip-path="url(#terminal-2240111166-line-6)">:</text><text class="terminal-2240111166-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-2240111166-line-6)">
|
</text><text class="terminal-1793440407-r2" x="0" y="166.4" textLength="488" clip-path="url(#terminal-1793440407-line-6)">    viv exe <vivenv> python -- script.py</text><text class="terminal-1793440407-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-1793440407-line-6)">
|
||||||
</text><text class="terminal-2240111166-r3" x="24.4" y="190.8" textLength="24.4" clip-path="url(#terminal-2240111166-line-7)">-h</text><text class="terminal-2240111166-r2" x="48.8" y="190.8" textLength="24.4" clip-path="url(#terminal-2240111166-line-7)">, </text><text class="terminal-2240111166-r3" x="73.2" y="190.8" textLength="73.2" clip-path="url(#terminal-2240111166-line-7)">--help</text><text class="terminal-2240111166-r2" x="146.4" y="190.8" textLength="427" clip-path="url(#terminal-2240111166-line-7)">    show this help message and exit</text><text class="terminal-2240111166-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-2240111166-line-7)">
|
</text><text class="terminal-1793440407-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-1793440407-line-7)">
|
||||||
|
</text><text class="terminal-1793440407-r1" x="0" y="215.2" textLength="244" clip-path="url(#terminal-1793440407-line-8)">positional arguments</text><text class="terminal-1793440407-r2" x="244" y="215.2" textLength="12.2" clip-path="url(#terminal-1793440407-line-8)">:</text><text class="terminal-1793440407-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-1793440407-line-8)">
|
||||||
|
</text><text class="terminal-1793440407-r3" x="24.4" y="239.6" textLength="73.2" clip-path="url(#terminal-1793440407-line-9)">vivenv</text><text class="terminal-1793440407-r2" x="97.6" y="239.6" textLength="329.4" clip-path="url(#terminal-1793440407-line-9)">        name/hash of vivenv</text><text class="terminal-1793440407-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-1793440407-line-9)">
|
||||||
|
</text><text class="terminal-1793440407-r3" x="24.4" y="264" textLength="36.6" clip-path="url(#terminal-1793440407-line-10)">cmd</text><text class="terminal-1793440407-r2" x="61" y="264" textLength="390.4" clip-path="url(#terminal-1793440407-line-10)">           command to to execute</text><text class="terminal-1793440407-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-1793440407-line-10)">
|
||||||
|
</text><text class="terminal-1793440407-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-1793440407-line-11)">
|
||||||
|
</text><text class="terminal-1793440407-r1" x="0" y="312.8" textLength="85.4" clip-path="url(#terminal-1793440407-line-12)">options</text><text class="terminal-1793440407-r2" x="85.4" y="312.8" textLength="12.2" clip-path="url(#terminal-1793440407-line-12)">:</text><text class="terminal-1793440407-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-1793440407-line-12)">
|
||||||
|
</text><text class="terminal-1793440407-r3" x="24.4" y="337.2" textLength="24.4" clip-path="url(#terminal-1793440407-line-13)">-h</text><text class="terminal-1793440407-r2" x="48.8" y="337.2" textLength="24.4" clip-path="url(#terminal-1793440407-line-13)">, </text><text class="terminal-1793440407-r3" x="73.2" y="337.2" textLength="73.2" clip-path="url(#terminal-1793440407-line-13)">--help</text><text class="terminal-1793440407-r2" x="146.4" y="337.2" textLength="427" clip-path="url(#terminal-1793440407-line-13)">    show this help message and exit</text><text class="terminal-1793440407-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-1793440407-line-13)">
|
||||||
</text>
|
</text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 8.5 KiB |
|
@ -1,4 +1,4 @@
|
||||||
<svg class="rich-terminal shadow" viewBox="0 0 890.3333333333334 277.5333333333333" xmlns="http://www.w3.org/2000/svg">
|
<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 -->
|
<!-- Generated with Rich https://www.textualize.io & yartsu https://github.com/daylinmorgan/yartsu -->
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
@ -19,14 +19,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-1517577456-matrix {
|
.terminal-2696068080-matrix {
|
||||||
font-family: Fira Code, monospace;
|
font-family: Fira Code, monospace;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 24.4px;
|
line-height: 24.4px;
|
||||||
font-variant-east-asian: full-width;
|
font-variant-east-asian: full-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-1517577456-title {
|
.terminal-2696068080-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: arial;
|
font-family: arial;
|
||||||
|
@ -36,56 +36,80 @@
|
||||||
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
}
|
}
|
||||||
.terminal-1517577456-r1 { fill: #94e2d5;font-weight: bold }
|
.terminal-2696068080-r1 { fill: #94e2d5;font-weight: bold }
|
||||||
.terminal-1517577456-r2 { fill: #c6d0f5 }
|
.terminal-2696068080-r2 { fill: #c6d0f5 }
|
||||||
.terminal-1517577456-r3 { fill: #f9e2af;font-weight: bold }
|
.terminal-2696068080-r3 { fill: #f9e2af;font-weight: bold }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<defs>
|
<defs>
|
||||||
<clipPath id="terminal-1517577456-clip-terminal">
|
<clipPath id="terminal-2696068080-clip-terminal">
|
||||||
<rect x="0" y="0" width="853.0" height="194.2" />
|
<rect x="0" y="0" width="853.0" height="340.59999999999997" />
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-0">
|
<clipPath id="terminal-2696068080-line-0">
|
||||||
<rect x="0" y="1.5" width="854" height="24.65"/>
|
<rect x="0" y="1.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-1">
|
<clipPath id="terminal-2696068080-line-1">
|
||||||
<rect x="0" y="25.9" width="854" height="24.65"/>
|
<rect x="0" y="25.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-2">
|
<clipPath id="terminal-2696068080-line-2">
|
||||||
<rect x="0" y="50.3" width="854" height="24.65"/>
|
<rect x="0" y="50.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-3">
|
<clipPath id="terminal-2696068080-line-3">
|
||||||
<rect x="0" y="74.7" width="854" height="24.65"/>
|
<rect x="0" y="74.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-4">
|
<clipPath id="terminal-2696068080-line-4">
|
||||||
<rect x="0" y="99.1" width="854" height="24.65"/>
|
<rect x="0" y="99.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-5">
|
<clipPath id="terminal-2696068080-line-5">
|
||||||
<rect x="0" y="123.5" width="854" height="24.65"/>
|
<rect x="0" y="123.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1517577456-line-6">
|
<clipPath id="terminal-2696068080-line-6">
|
||||||
<rect x="0" y="147.9" width="854" height="24.65"/>
|
<rect x="0" y="147.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2696068080-line-7">
|
||||||
|
<rect x="0" y="172.3" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2696068080-line-8">
|
||||||
|
<rect x="0" y="196.7" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2696068080-line-9">
|
||||||
|
<rect x="0" y="221.1" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2696068080-line-10">
|
||||||
|
<rect x="0" y="245.5" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2696068080-line-11">
|
||||||
|
<rect x="0" y="269.9" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
|
<clipPath id="terminal-2696068080-line-12">
|
||||||
|
<rect x="0" y="294.3" width="854" height="24.65"/>
|
||||||
|
</clipPath>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="243.2" rx="8"/><text class="terminal-1517577456-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv exe python --help</text>
|
<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-2696068080-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv exe python --help</text>
|
||||||
<g transform="translate(32,22)">
|
<g transform="translate(32,22)">
|
||||||
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
||||||
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
||||||
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-1517577456-clip-terminal)">
|
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-2696068080-clip-terminal)">
|
||||||
|
|
||||||
<g class="terminal-1517577456-matrix">
|
<g class="terminal-2696068080-matrix">
|
||||||
<text class="terminal-1517577456-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-1517577456-line-0)">usage</text><text class="terminal-1517577456-r2" x="61" y="20" textLength="463.6" clip-path="url(#terminal-1517577456-line-0)">: viv exe python [-h] vivenv [cmd ...]</text><text class="terminal-1517577456-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-1517577456-line-0)">
|
<text class="terminal-2696068080-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-2696068080-line-0)">usage</text><text class="terminal-2696068080-r2" x="61" y="20" textLength="305" clip-path="url(#terminal-2696068080-line-0)">: viv exe [-h] vivenv cmd</text><text class="terminal-2696068080-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-2696068080-line-0)">
|
||||||
</text><text class="terminal-1517577456-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-1517577456-line-1)">
|
</text><text class="terminal-2696068080-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-2696068080-line-1)">
|
||||||
</text><text class="terminal-1517577456-r1" x="0" y="68.8" textLength="244" clip-path="url(#terminal-1517577456-line-2)">positional arguments</text><text class="terminal-1517577456-r2" x="244" y="68.8" textLength="12.2" clip-path="url(#terminal-1517577456-line-2)">:</text><text class="terminal-1517577456-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-1517577456-line-2)">
|
</text><text class="terminal-2696068080-r2" x="0" y="68.8" textLength="439.2" clip-path="url(#terminal-2696068080-line-2)">run binary/script in existing vivenv</text><text class="terminal-2696068080-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-2696068080-line-2)">
|
||||||
</text><text class="terminal-1517577456-r3" x="24.4" y="93.2" textLength="73.2" clip-path="url(#terminal-1517577456-line-3)">vivenv</text><text class="terminal-1517577456-r2" x="97.6" y="93.2" textLength="329.4" clip-path="url(#terminal-1517577456-line-3)">        name/hash of vivenv</text><text class="terminal-1517577456-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-1517577456-line-3)">
|
</text><text class="terminal-2696068080-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-2696068080-line-3)">
|
||||||
</text><text class="terminal-1517577456-r3" x="24.4" y="117.6" textLength="36.6" clip-path="url(#terminal-1517577456-line-4)">cmd</text><text class="terminal-1517577456-r2" x="61" y="117.6" textLength="390.4" clip-path="url(#terminal-1517577456-line-4)">           command to to execute</text><text class="terminal-1517577456-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-1517577456-line-4)">
|
</text><text class="terminal-2696068080-r2" x="0" y="117.6" textLength="109.8" clip-path="url(#terminal-2696068080-line-4)">examples:</text><text class="terminal-2696068080-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-2696068080-line-4)">
|
||||||
</text><text class="terminal-1517577456-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-1517577456-line-5)">
|
</text><text class="terminal-2696068080-r2" x="0" y="142" textLength="390.4" clip-path="url(#terminal-2696068080-line-5)">    viv exe <vivenv> pip -- list</text><text class="terminal-2696068080-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-2696068080-line-5)">
|
||||||
</text><text class="terminal-1517577456-r1" x="0" y="166.4" textLength="85.4" clip-path="url(#terminal-1517577456-line-6)">options</text><text class="terminal-1517577456-r2" x="85.4" y="166.4" textLength="12.2" clip-path="url(#terminal-1517577456-line-6)">:</text><text class="terminal-1517577456-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-1517577456-line-6)">
|
</text><text class="terminal-2696068080-r2" x="0" y="166.4" textLength="488" clip-path="url(#terminal-2696068080-line-6)">    viv exe <vivenv> python -- script.py</text><text class="terminal-2696068080-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-2696068080-line-6)">
|
||||||
</text><text class="terminal-1517577456-r3" x="24.4" y="190.8" textLength="24.4" clip-path="url(#terminal-1517577456-line-7)">-h</text><text class="terminal-1517577456-r2" x="48.8" y="190.8" textLength="24.4" clip-path="url(#terminal-1517577456-line-7)">, </text><text class="terminal-1517577456-r3" x="73.2" y="190.8" textLength="73.2" clip-path="url(#terminal-1517577456-line-7)">--help</text><text class="terminal-1517577456-r2" x="146.4" y="190.8" textLength="427" clip-path="url(#terminal-1517577456-line-7)">    show this help message and exit</text><text class="terminal-1517577456-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-1517577456-line-7)">
|
</text><text class="terminal-2696068080-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-2696068080-line-7)">
|
||||||
|
</text><text class="terminal-2696068080-r1" x="0" y="215.2" textLength="244" clip-path="url(#terminal-2696068080-line-8)">positional arguments</text><text class="terminal-2696068080-r2" x="244" y="215.2" textLength="12.2" clip-path="url(#terminal-2696068080-line-8)">:</text><text class="terminal-2696068080-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-2696068080-line-8)">
|
||||||
|
</text><text class="terminal-2696068080-r3" x="24.4" y="239.6" textLength="73.2" clip-path="url(#terminal-2696068080-line-9)">vivenv</text><text class="terminal-2696068080-r2" x="97.6" y="239.6" textLength="329.4" clip-path="url(#terminal-2696068080-line-9)">        name/hash of vivenv</text><text class="terminal-2696068080-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-2696068080-line-9)">
|
||||||
|
</text><text class="terminal-2696068080-r3" x="24.4" y="264" textLength="36.6" clip-path="url(#terminal-2696068080-line-10)">cmd</text><text class="terminal-2696068080-r2" x="61" y="264" textLength="390.4" clip-path="url(#terminal-2696068080-line-10)">           command to to execute</text><text class="terminal-2696068080-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-2696068080-line-10)">
|
||||||
|
</text><text class="terminal-2696068080-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-2696068080-line-11)">
|
||||||
|
</text><text class="terminal-2696068080-r1" x="0" y="312.8" textLength="85.4" clip-path="url(#terminal-2696068080-line-12)">options</text><text class="terminal-2696068080-r2" x="85.4" y="312.8" textLength="12.2" clip-path="url(#terminal-2696068080-line-12)">:</text><text class="terminal-2696068080-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-2696068080-line-12)">
|
||||||
|
</text><text class="terminal-2696068080-r3" x="24.4" y="337.2" textLength="24.4" clip-path="url(#terminal-2696068080-line-13)">-h</text><text class="terminal-2696068080-r2" x="48.8" y="337.2" textLength="24.4" clip-path="url(#terminal-2696068080-line-13)">, </text><text class="terminal-2696068080-r3" x="73.2" y="337.2" textLength="73.2" clip-path="url(#terminal-2696068080-line-13)">--help</text><text class="terminal-2696068080-r2" x="146.4" y="337.2" textLength="427" clip-path="url(#terminal-2696068080-line-13)">    show this help message and exit</text><text class="terminal-2696068080-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-2696068080-line-13)">
|
||||||
</text>
|
</text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 6.3 KiB After Width: | Height: | Size: 8.5 KiB |
|
@ -19,14 +19,14 @@
|
||||||
font-weight: 700;
|
font-weight: 700;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-1825138163-matrix {
|
.terminal-2508285730-matrix {
|
||||||
font-family: Fira Code, monospace;
|
font-family: Fira Code, monospace;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
line-height: 24.4px;
|
line-height: 24.4px;
|
||||||
font-variant-east-asian: full-width;
|
font-variant-east-asian: full-width;
|
||||||
}
|
}
|
||||||
|
|
||||||
.terminal-1825138163-title {
|
.terminal-2508285730-title {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
font-family: arial;
|
font-family: arial;
|
||||||
|
@ -36,110 +36,110 @@
|
||||||
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
-webkit-filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
filter: drop-shadow( 2px 5px 2px rgba(0, 0, 0, .7));
|
||||||
}
|
}
|
||||||
.terminal-1825138163-r1 { fill: #94e2d5;font-weight: bold }
|
.terminal-2508285730-r1 { fill: #94e2d5;font-weight: bold }
|
||||||
.terminal-1825138163-r2 { fill: #c6d0f5 }
|
.terminal-2508285730-r2 { fill: #c6d0f5 }
|
||||||
.terminal-1825138163-r3 { fill: #f5c2e7;font-weight: bold }
|
.terminal-2508285730-r3 { fill: #f5c2e7;font-weight: bold }
|
||||||
.terminal-1825138163-r4 { fill: #c6d0f5;font-weight: bold }
|
.terminal-2508285730-r4 { fill: #c6d0f5;font-weight: bold }
|
||||||
.terminal-1825138163-r5 { fill: #f9e2af;font-weight: bold }
|
.terminal-2508285730-r5 { fill: #f9e2af;font-weight: bold }
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<defs>
|
<defs>
|
||||||
<clipPath id="terminal-1825138163-clip-terminal">
|
<clipPath id="terminal-2508285730-clip-terminal">
|
||||||
<rect x="0" y="0" width="853.0" height="511.4" />
|
<rect x="0" y="0" width="853.0" height="511.4" />
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-0">
|
<clipPath id="terminal-2508285730-line-0">
|
||||||
<rect x="0" y="1.5" width="854" height="24.65"/>
|
<rect x="0" y="1.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-1">
|
<clipPath id="terminal-2508285730-line-1">
|
||||||
<rect x="0" y="25.9" width="854" height="24.65"/>
|
<rect x="0" y="25.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-2">
|
<clipPath id="terminal-2508285730-line-2">
|
||||||
<rect x="0" y="50.3" width="854" height="24.65"/>
|
<rect x="0" y="50.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-3">
|
<clipPath id="terminal-2508285730-line-3">
|
||||||
<rect x="0" y="74.7" width="854" height="24.65"/>
|
<rect x="0" y="74.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-4">
|
<clipPath id="terminal-2508285730-line-4">
|
||||||
<rect x="0" y="99.1" width="854" height="24.65"/>
|
<rect x="0" y="99.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-5">
|
<clipPath id="terminal-2508285730-line-5">
|
||||||
<rect x="0" y="123.5" width="854" height="24.65"/>
|
<rect x="0" y="123.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-6">
|
<clipPath id="terminal-2508285730-line-6">
|
||||||
<rect x="0" y="147.9" width="854" height="24.65"/>
|
<rect x="0" y="147.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-7">
|
<clipPath id="terminal-2508285730-line-7">
|
||||||
<rect x="0" y="172.3" width="854" height="24.65"/>
|
<rect x="0" y="172.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-8">
|
<clipPath id="terminal-2508285730-line-8">
|
||||||
<rect x="0" y="196.7" width="854" height="24.65"/>
|
<rect x="0" y="196.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-9">
|
<clipPath id="terminal-2508285730-line-9">
|
||||||
<rect x="0" y="221.1" width="854" height="24.65"/>
|
<rect x="0" y="221.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-10">
|
<clipPath id="terminal-2508285730-line-10">
|
||||||
<rect x="0" y="245.5" width="854" height="24.65"/>
|
<rect x="0" y="245.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-11">
|
<clipPath id="terminal-2508285730-line-11">
|
||||||
<rect x="0" y="269.9" width="854" height="24.65"/>
|
<rect x="0" y="269.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-12">
|
<clipPath id="terminal-2508285730-line-12">
|
||||||
<rect x="0" y="294.3" width="854" height="24.65"/>
|
<rect x="0" y="294.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-13">
|
<clipPath id="terminal-2508285730-line-13">
|
||||||
<rect x="0" y="318.7" width="854" height="24.65"/>
|
<rect x="0" y="318.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-14">
|
<clipPath id="terminal-2508285730-line-14">
|
||||||
<rect x="0" y="343.1" width="854" height="24.65"/>
|
<rect x="0" y="343.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-15">
|
<clipPath id="terminal-2508285730-line-15">
|
||||||
<rect x="0" y="367.5" width="854" height="24.65"/>
|
<rect x="0" y="367.5" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-16">
|
<clipPath id="terminal-2508285730-line-16">
|
||||||
<rect x="0" y="391.9" width="854" height="24.65"/>
|
<rect x="0" y="391.9" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-17">
|
<clipPath id="terminal-2508285730-line-17">
|
||||||
<rect x="0" y="416.3" width="854" height="24.65"/>
|
<rect x="0" y="416.3" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-18">
|
<clipPath id="terminal-2508285730-line-18">
|
||||||
<rect x="0" y="440.7" width="854" height="24.65"/>
|
<rect x="0" y="440.7" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
<clipPath id="terminal-1825138163-line-19">
|
<clipPath id="terminal-2508285730-line-19">
|
||||||
<rect x="0" y="465.1" width="854" height="24.65"/>
|
<rect x="0" y="465.1" width="854" height="24.65"/>
|
||||||
</clipPath>
|
</clipPath>
|
||||||
</defs>
|
</defs>
|
||||||
|
|
||||||
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="560.4" rx="8"/><text class="terminal-1825138163-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv  --help</text>
|
<rect fill="#1e1e2e" stroke="rgba(255,255,255,0.35)" stroke-width="1" x="10.1667" y="1" width="870" height="560.4" rx="8"/><text class="terminal-2508285730-title" fill="#c6d0f5" text-anchor="middle" x="435" y="27">viv  --help</text>
|
||||||
<g transform="translate(32,22)">
|
<g transform="translate(32,22)">
|
||||||
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
<circle cx="0" cy="0" r="7" fill="#ff5f57"/>
|
||||||
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
<circle cx="22" cy="0" r="7" fill="#febc2e"/>
|
||||||
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
<circle cx="44" cy="0" r="7" fill="#28c840"/>
|
||||||
</g>
|
</g>
|
||||||
|
|
||||||
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-1825138163-clip-terminal)">
|
<g transform="translate(18.166666666666664, 41) scale(.95)" clip-path="url(#terminal-2508285730-clip-terminal)">
|
||||||
|
|
||||||
<g class="terminal-1825138163-matrix">
|
<g class="terminal-2508285730-matrix">
|
||||||
<text class="terminal-1825138163-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-1825138163-line-0)">usage</text><text class="terminal-1825138163-r2" x="61" y="20" textLength="353.8" clip-path="url(#terminal-1825138163-line-0)">: viv [-h] [-V] <sub-cmd> ...</text><text class="terminal-1825138163-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-1825138163-line-0)">
|
<text class="terminal-2508285730-r1" x="0" y="20" textLength="61" clip-path="url(#terminal-2508285730-line-0)">usage</text><text class="terminal-2508285730-r2" x="61" y="20" textLength="353.8" clip-path="url(#terminal-2508285730-line-0)">: viv [-h] [-V] <sub-cmd> ...</text><text class="terminal-2508285730-r2" x="854" y="20" textLength="12.2" clip-path="url(#terminal-2508285730-line-0)">
|
||||||
</text><text class="terminal-1825138163-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-1825138163-line-1)">
|
</text><text class="terminal-2508285730-r2" x="854" y="44.4" textLength="12.2" clip-path="url(#terminal-2508285730-line-1)">
|
||||||
</text><text class="terminal-1825138163-r3" x="0" y="68.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-2)">v</text><text class="terminal-1825138163-r1" x="12.2" y="68.8" textLength="24.4" clip-path="url(#terminal-1825138163-line-2)">iv</text><text class="terminal-1825138163-r3" x="48.8" y="68.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-2)">i</text><text class="terminal-1825138163-r1" x="61" y="68.8" textLength="48.8" clip-path="url(#terminal-1825138163-line-2)">sn't</text><text class="terminal-1825138163-r3" x="122" y="68.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-2)">v</text><text class="terminal-1825138163-r1" x="134.2" y="68.8" textLength="48.8" clip-path="url(#terminal-1825138163-line-2)">env!</text><text class="terminal-1825138163-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-2)">
|
</text><text class="terminal-2508285730-r3" x="0" y="68.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-2)">v</text><text class="terminal-2508285730-r1" x="12.2" y="68.8" textLength="24.4" clip-path="url(#terminal-2508285730-line-2)">iv</text><text class="terminal-2508285730-r3" x="48.8" y="68.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-2)">i</text><text class="terminal-2508285730-r1" x="61" y="68.8" textLength="48.8" clip-path="url(#terminal-2508285730-line-2)">sn't</text><text class="terminal-2508285730-r3" x="122" y="68.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-2)">v</text><text class="terminal-2508285730-r1" x="134.2" y="68.8" textLength="48.8" clip-path="url(#terminal-2508285730-line-2)">env!</text><text class="terminal-2508285730-r2" x="854" y="68.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-2)">
|
||||||
</text><text class="terminal-1825138163-r2" x="0" y="93.2" textLength="341.6" clip-path="url(#terminal-1825138163-line-3)">to create/activate a vivenv:</text><text class="terminal-1825138163-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-1825138163-line-3)">
|
</text><text class="terminal-2508285730-r2" x="0" y="93.2" textLength="341.6" clip-path="url(#terminal-2508285730-line-3)">to create/activate a vivenv:</text><text class="terminal-2508285730-r2" x="854" y="93.2" textLength="12.2" clip-path="url(#terminal-2508285730-line-3)">
|
||||||
</text><text class="terminal-1825138163-r2" x="0" y="117.6" textLength="268.4" clip-path="url(#terminal-1825138163-line-4)">- from command line: `</text><text class="terminal-1825138163-r4" x="268.4" y="117.6" textLength="73.2" clip-path="url(#terminal-1825138163-line-4)">viv -h</text><text class="terminal-1825138163-r2" x="341.6" y="117.6" textLength="12.2" clip-path="url(#terminal-1825138163-line-4)">`</text><text class="terminal-1825138163-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-1825138163-line-4)">
|
</text><text class="terminal-2508285730-r2" x="0" y="117.6" textLength="268.4" clip-path="url(#terminal-2508285730-line-4)">- from command line: `</text><text class="terminal-2508285730-r4" x="268.4" y="117.6" textLength="73.2" clip-path="url(#terminal-2508285730-line-4)">viv -h</text><text class="terminal-2508285730-r2" x="341.6" y="117.6" textLength="12.2" clip-path="url(#terminal-2508285730-line-4)">`</text><text class="terminal-2508285730-r2" x="854" y="117.6" textLength="12.2" clip-path="url(#terminal-2508285730-line-4)">
|
||||||
</text><text class="terminal-1825138163-r2" x="0" y="142" textLength="292.8" clip-path="url(#terminal-1825138163-line-5)">- within python script: </text><text class="terminal-1825138163-r4" x="292.8" y="142" textLength="536.8" clip-path="url(#terminal-1825138163-line-5)">__import__("viv").use("typer", "rich-click")</text><text class="terminal-1825138163-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-1825138163-line-5)">
|
</text><text class="terminal-2508285730-r2" x="0" y="142" textLength="292.8" clip-path="url(#terminal-2508285730-line-5)">- within python script: </text><text class="terminal-2508285730-r4" x="292.8" y="142" textLength="536.8" clip-path="url(#terminal-2508285730-line-5)">__import__("viv").use("typer", "rich-click")</text><text class="terminal-2508285730-r2" x="854" y="142" textLength="12.2" clip-path="url(#terminal-2508285730-line-5)">
|
||||||
</text><text class="terminal-1825138163-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-1825138163-line-6)">
|
</text><text class="terminal-2508285730-r2" x="854" y="166.4" textLength="12.2" clip-path="url(#terminal-2508285730-line-6)">
|
||||||
</text><text class="terminal-1825138163-r1" x="0" y="190.8" textLength="85.4" clip-path="url(#terminal-1825138163-line-7)">options</text><text class="terminal-1825138163-r2" x="85.4" y="190.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-7)">:</text><text class="terminal-1825138163-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-7)">
|
</text><text class="terminal-2508285730-r1" x="0" y="190.8" textLength="85.4" clip-path="url(#terminal-2508285730-line-7)">options</text><text class="terminal-2508285730-r2" x="85.4" y="190.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-7)">:</text><text class="terminal-2508285730-r2" x="854" y="190.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-7)">
|
||||||
</text><text class="terminal-1825138163-r5" x="24.4" y="215.2" textLength="24.4" clip-path="url(#terminal-1825138163-line-8)">-h</text><text class="terminal-1825138163-r2" x="48.8" y="215.2" textLength="24.4" clip-path="url(#terminal-1825138163-line-8)">, </text><text class="terminal-1825138163-r5" x="73.2" y="215.2" textLength="73.2" clip-path="url(#terminal-1825138163-line-8)">--help</text><text class="terminal-1825138163-r2" x="146.4" y="215.2" textLength="463.6" clip-path="url(#terminal-1825138163-line-8)">       show this help message and exit</text><text class="terminal-1825138163-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-1825138163-line-8)">
|
</text><text class="terminal-2508285730-r5" x="24.4" y="215.2" textLength="24.4" clip-path="url(#terminal-2508285730-line-8)">-h</text><text class="terminal-2508285730-r2" x="48.8" y="215.2" textLength="24.4" clip-path="url(#terminal-2508285730-line-8)">, </text><text class="terminal-2508285730-r5" x="73.2" y="215.2" textLength="73.2" clip-path="url(#terminal-2508285730-line-8)">--help</text><text class="terminal-2508285730-r2" x="146.4" y="215.2" textLength="463.6" clip-path="url(#terminal-2508285730-line-8)">       show this help message and exit</text><text class="terminal-2508285730-r2" x="854" y="215.2" textLength="12.2" clip-path="url(#terminal-2508285730-line-8)">
|
||||||
</text><text class="terminal-1825138163-r5" x="24.4" y="239.6" textLength="24.4" clip-path="url(#terminal-1825138163-line-9)">-V</text><text class="terminal-1825138163-r2" x="48.8" y="239.6" textLength="24.4" clip-path="url(#terminal-1825138163-line-9)">, </text><text class="terminal-1825138163-r5" x="73.2" y="239.6" textLength="109.8" clip-path="url(#terminal-1825138163-line-9)">--version</text><text class="terminal-1825138163-r2" x="183" y="239.6" textLength="512.4" clip-path="url(#terminal-1825138163-line-9)">    show program's version number and exit</text><text class="terminal-1825138163-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-1825138163-line-9)">
|
</text><text class="terminal-2508285730-r5" x="24.4" y="239.6" textLength="24.4" clip-path="url(#terminal-2508285730-line-9)">-V</text><text class="terminal-2508285730-r2" x="48.8" y="239.6" textLength="24.4" clip-path="url(#terminal-2508285730-line-9)">, </text><text class="terminal-2508285730-r5" x="73.2" y="239.6" textLength="109.8" clip-path="url(#terminal-2508285730-line-9)">--version</text><text class="terminal-2508285730-r2" x="183" y="239.6" textLength="512.4" clip-path="url(#terminal-2508285730-line-9)">    show program's version number and exit</text><text class="terminal-2508285730-r2" x="854" y="239.6" textLength="12.2" clip-path="url(#terminal-2508285730-line-9)">
|
||||||
</text><text class="terminal-1825138163-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-1825138163-line-10)">
|
</text><text class="terminal-2508285730-r2" x="854" y="264" textLength="12.2" clip-path="url(#terminal-2508285730-line-10)">
|
||||||
</text><text class="terminal-1825138163-r1" x="0" y="288.4" textLength="134.2" clip-path="url(#terminal-1825138163-line-11)">subcommands</text><text class="terminal-1825138163-r2" x="134.2" y="288.4" textLength="12.2" clip-path="url(#terminal-1825138163-line-11)">:</text><text class="terminal-1825138163-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-1825138163-line-11)">
|
</text><text class="terminal-2508285730-r1" x="0" y="288.4" textLength="134.2" clip-path="url(#terminal-2508285730-line-11)">subcommands</text><text class="terminal-2508285730-r2" x="134.2" y="288.4" textLength="12.2" clip-path="url(#terminal-2508285730-line-11)">:</text><text class="terminal-2508285730-r2" x="854" y="288.4" textLength="12.2" clip-path="url(#terminal-2508285730-line-11)">
|
||||||
</text><text class="terminal-1825138163-r5" x="24.4" y="312.8" textLength="109.8" clip-path="url(#terminal-1825138163-line-12)"><sub-cmd></text><text class="terminal-1825138163-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-12)">
|
</text><text class="terminal-2508285730-r5" x="24.4" y="312.8" textLength="109.8" clip-path="url(#terminal-2508285730-line-12)"><sub-cmd></text><text class="terminal-2508285730-r2" x="854" y="312.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-12)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="337.2" textLength="97.6" clip-path="url(#terminal-1825138163-line-13)">list (l)</text><text class="terminal-1825138163-r2" x="146.4" y="337.2" textLength="280.6" clip-path="url(#terminal-1825138163-line-13)">       list all vivenvs</text><text class="terminal-1825138163-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-1825138163-line-13)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="337.2" textLength="97.6" clip-path="url(#terminal-2508285730-line-13)">list (l)</text><text class="terminal-2508285730-r2" x="146.4" y="337.2" textLength="280.6" clip-path="url(#terminal-2508285730-line-13)">       list all vivenvs</text><text class="terminal-2508285730-r2" x="854" y="337.2" textLength="12.2" clip-path="url(#terminal-2508285730-line-13)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="361.6" textLength="85.4" clip-path="url(#terminal-1825138163-line-14)">exe (e)</text><text class="terminal-1825138163-r2" x="134.2" y="361.6" textLength="500.2" clip-path="url(#terminal-1825138163-line-14)">        run python/pip in existing vivenv</text><text class="terminal-1825138163-r2" x="854" y="361.6" textLength="12.2" clip-path="url(#terminal-1825138163-line-14)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="361.6" textLength="97.6" clip-path="url(#terminal-2508285730-line-14)">shim (s)</text><text class="terminal-2508285730-r2" x="146.4" y="361.6" textLength="439.2" clip-path="url(#terminal-2508285730-line-14)">       generate viv-powered cli apps</text><text class="terminal-2508285730-r2" x="854" y="361.6" textLength="12.2" clip-path="url(#terminal-2508285730-line-14)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="386" textLength="134.2" clip-path="url(#terminal-1825138163-line-15)">remove (rm)</text><text class="terminal-1825138163-r2" x="183" y="386" textLength="231.8" clip-path="url(#terminal-1825138163-line-15)">    remove a vivenv</text><text class="terminal-1825138163-r2" x="854" y="386" textLength="12.2" clip-path="url(#terminal-1825138163-line-15)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="386" textLength="85.4" clip-path="url(#terminal-2508285730-line-15)">run (r)</text><text class="terminal-2508285730-r2" x="134.2" y="386" textLength="500.2" clip-path="url(#terminal-2508285730-line-15)">        run an app with an on-demand venv</text><text class="terminal-2508285730-r2" x="854" y="386" textLength="12.2" clip-path="url(#terminal-2508285730-line-15)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="410.4" textLength="122" clip-path="url(#terminal-1825138163-line-16)">freeze (f)</text><text class="terminal-1825138163-r2" x="170.8" y="410.4" textLength="561.2" clip-path="url(#terminal-1825138163-line-16)">     create import statement from package spec</text><text class="terminal-1825138163-r2" x="854" y="410.4" textLength="12.2" clip-path="url(#terminal-1825138163-line-16)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="410.4" textLength="85.4" clip-path="url(#terminal-2508285730-line-16)">exe (e)</text><text class="terminal-2508285730-r2" x="134.2" y="410.4" textLength="536.8" clip-path="url(#terminal-2508285730-line-16)">        run binary/script in existing vivenv</text><text class="terminal-2508285730-r2" x="854" y="410.4" textLength="12.2" clip-path="url(#terminal-2508285730-line-16)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="434.8" textLength="97.6" clip-path="url(#terminal-1825138163-line-17)">info (i)</text><text class="terminal-1825138163-r2" x="146.4" y="434.8" textLength="414.8" clip-path="url(#terminal-1825138163-line-17)">       get metadata about a vivenv</text><text class="terminal-1825138163-r2" x="854" y="434.8" textLength="12.2" clip-path="url(#terminal-1825138163-line-17)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="434.8" textLength="134.2" clip-path="url(#terminal-2508285730-line-17)">remove (rm)</text><text class="terminal-2508285730-r2" x="183" y="434.8" textLength="231.8" clip-path="url(#terminal-2508285730-line-17)">    remove a vivenv</text><text class="terminal-2508285730-r2" x="854" y="434.8" textLength="12.2" clip-path="url(#terminal-2508285730-line-17)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="459.2" textLength="122" clip-path="url(#terminal-1825138163-line-18)">manage (m)</text><text class="terminal-1825138163-r2" x="170.8" y="459.2" textLength="268.4" clip-path="url(#terminal-1825138163-line-18)">     manage viv itself</text><text class="terminal-1825138163-r2" x="854" y="459.2" textLength="12.2" clip-path="url(#terminal-1825138163-line-18)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="459.2" textLength="122" clip-path="url(#terminal-2508285730-line-18)">freeze (f)</text><text class="terminal-2508285730-r2" x="170.8" y="459.2" textLength="561.2" clip-path="url(#terminal-2508285730-line-18)">     create import statement from package spec</text><text class="terminal-2508285730-r2" x="854" y="459.2" textLength="12.2" clip-path="url(#terminal-2508285730-line-18)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="483.6" textLength="97.6" clip-path="url(#terminal-1825138163-line-19)">shim (s)</text><text class="terminal-1825138163-r2" x="146.4" y="483.6" textLength="439.2" clip-path="url(#terminal-1825138163-line-19)">       generate viv-powered cli apps</text><text class="terminal-1825138163-r2" x="854" y="483.6" textLength="12.2" clip-path="url(#terminal-1825138163-line-19)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="483.6" textLength="97.6" clip-path="url(#terminal-2508285730-line-19)">info (i)</text><text class="terminal-2508285730-r2" x="146.4" y="483.6" textLength="414.8" clip-path="url(#terminal-2508285730-line-19)">       get metadata about a vivenv</text><text class="terminal-2508285730-r2" x="854" y="483.6" textLength="12.2" clip-path="url(#terminal-2508285730-line-19)">
|
||||||
</text><text class="terminal-1825138163-r5" x="48.8" y="508" textLength="85.4" clip-path="url(#terminal-1825138163-line-20)">run (r)</text><text class="terminal-1825138163-r2" x="134.2" y="508" textLength="500.2" clip-path="url(#terminal-1825138163-line-20)">        run an app with an on-demand venv</text><text class="terminal-1825138163-r2" x="854" y="508" textLength="12.2" clip-path="url(#terminal-1825138163-line-20)">
|
</text><text class="terminal-2508285730-r5" x="48.8" y="508" textLength="122" clip-path="url(#terminal-2508285730-line-20)">manage (m)</text><text class="terminal-2508285730-r2" x="170.8" y="508" textLength="268.4" clip-path="url(#terminal-2508285730-line-20)">     manage viv itself</text><text class="terminal-2508285730-r2" x="854" y="508" textLength="12.2" clip-path="url(#terminal-2508285730-line-20)">
|
||||||
</text>
|
</text>
|
||||||
</g>
|
</g>
|
||||||
</g>
|
</g>
|
||||||
|
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
@ -1,4 +1,8 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
# AUTOGENERATED by viv (v23.5a4-37-gf8ebd9d-dev)
|
||||||
|
# see `python3 <(curl -fsSL viv.dayl.in/viv.py) --help`
|
||||||
|
|
||||||
|
|
||||||
def _viv_use(*pkgs, track_exe=False, name=""):
|
def _viv_use(*pkgs, track_exe=False, name=""):
|
||||||
import hashlib, json, os, site, shutil, sys, venv # noqa
|
import hashlib, json, os, site, shutil, sys, venv # noqa
|
||||||
from pathlib import Path # noqa
|
from pathlib import Path # noqa
|
||||||
|
@ -18,7 +22,7 @@ def _viv_use(*pkgs, track_exe=False, name=""):
|
||||||
_id = sha256.hexdigest()
|
_id = sha256.hexdigest()
|
||||||
if (env := cache / (name if name else _id)) not in cache.glob("*/") or force:
|
if (env := cache / (name if name else _id)) not in cache.glob("*/") or force:
|
||||||
sys.stderr.write(f"generating new vivenv -> {env.name}\n")
|
sys.stderr.write(f"generating new vivenv -> {env.name}\n")
|
||||||
venv.create(env, symlinks=True, with_pip=True, clear=True).create(env)
|
venv.create(env, symlinks=True, with_pip=True, clear=True)
|
||||||
(env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true")
|
(env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true")
|
||||||
run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2))))
|
run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2))))
|
||||||
p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw)
|
p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw)
|
||||||
|
|
|
@ -34,7 +34,6 @@ select = ["E","F","I"]
|
||||||
ignore = ["E402"]
|
ignore = ["E402"]
|
||||||
|
|
||||||
[tool.mypy]
|
[tool.mypy]
|
||||||
warn_return_any = true
|
|
||||||
check_untyped_defs = true
|
check_untyped_defs = true
|
||||||
disallow_untyped_defs = true
|
disallow_untyped_defs = true
|
||||||
warn_unused_configs = true
|
warn_unused_configs = true
|
||||||
|
|
138
src/viv/viv.py
|
@ -14,7 +14,6 @@ import itertools
|
||||||
import json
|
import json
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
import shlex
|
|
||||||
import shutil
|
import shutil
|
||||||
import site
|
import site
|
||||||
import subprocess
|
import subprocess
|
||||||
|
@ -51,7 +50,7 @@ from typing import (
|
||||||
from urllib.error import HTTPError
|
from urllib.error import HTTPError
|
||||||
from urllib.request import urlopen
|
from urllib.request import urlopen
|
||||||
|
|
||||||
__version__ = "23.5a4-37-gf8ebd9d-dev"
|
__version__ = "23.5a5-1-g853e6e6-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -222,7 +221,7 @@ to create/activate a vivenv:
|
||||||
_id = sha256.hexdigest()
|
_id = sha256.hexdigest()
|
||||||
if (env := cache / (name if name else _id)) not in cache.glob("*/") or force:
|
if (env := cache / (name if name else _id)) not in cache.glob("*/") or force:
|
||||||
sys.stderr.write(f"generating new vivenv -> {env.name}\n")
|
sys.stderr.write(f"generating new vivenv -> {env.name}\n")
|
||||||
venv.create(env, symlinks=True, with_pip=True, clear=True).create(env)
|
venv.create(env, symlinks=True, with_pip=True, clear=True)
|
||||||
(env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true")
|
(env / "pip.conf").write_text("[global]\ndisable-pip-version-check=true")
|
||||||
run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2))))
|
run_kw = dict(zip(("stdout", "stderr"), ((None,) * 2 if verbose else (-1, 2))))
|
||||||
p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw)
|
p = run([env / "bin" / "pip", "install", "--force-reinstall", *spec], **run_kw)
|
||||||
|
@ -258,8 +257,8 @@ to create/activate a vivenv:
|
||||||
(self._standalone_func, self.noqa(self._use_str(spec, standalone=True)))
|
(self._standalone_func, self.noqa(self._use_str(spec, standalone=True)))
|
||||||
)
|
)
|
||||||
return f"""
|
return f"""
|
||||||
# see `python3 <(curl -fsSL viv.dayl.in/viv.py) --help`
|
|
||||||
# AUTOGENERATED by viv (v{__version__})
|
# AUTOGENERATED by viv (v{__version__})
|
||||||
|
# see `python3 <(curl -fsSL viv.dayl.in/viv.py) --help`
|
||||||
{func_use}
|
{func_use}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
@ -313,7 +312,10 @@ to create/activate a vivenv:
|
||||||
else:
|
else:
|
||||||
imports = ""
|
imports = ""
|
||||||
return f"""\
|
return f"""\
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python
|
||||||
|
# AUTOGENERATED by viv (v{__version__})
|
||||||
|
# see `python3 <(curl -fsSL viv.dayl.in/viv.py) --help`
|
||||||
|
|
||||||
{imports}
|
{imports}
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
|
@ -351,6 +353,7 @@ if __name__ == "__main__":
|
||||||
("CLI", cli),
|
("CLI", cli),
|
||||||
("Running Source", running),
|
("Running Source", running),
|
||||||
("Local Source", local),
|
("Local Source", local),
|
||||||
|
("Cache", c._cache),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
+ "\n"
|
+ "\n"
|
||||||
|
@ -829,31 +832,34 @@ def resolve_deps(args: Namespace) -> List[str]:
|
||||||
return resolved_spec
|
return resolved_spec
|
||||||
|
|
||||||
|
|
||||||
def fetch_source(reference: str) -> str:
|
def fetch_script(url: str) -> str:
|
||||||
try:
|
try:
|
||||||
r = urlopen(
|
r = urlopen(url)
|
||||||
|
except (HTTPError, ValueError) as e:
|
||||||
|
error(f"Failed to fetch from remote url:\n {a.bold}{url}{a.end}")
|
||||||
|
echo(
|
||||||
|
"see below:" + a.style("-> ", "red").join(["\n"] + repr(e).splitlines()),
|
||||||
|
style="red",
|
||||||
|
)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
return r.read().decode("utf-8")
|
||||||
|
|
||||||
|
|
||||||
|
def fetch_source(reference: str) -> str:
|
||||||
|
src = fetch_script(
|
||||||
"https://raw.githubusercontent.com/daylinmorgan/viv/"
|
"https://raw.githubusercontent.com/daylinmorgan/viv/"
|
||||||
+ reference
|
+ reference
|
||||||
+ "/src/viv/viv.py"
|
+ "/src/viv/viv.py"
|
||||||
)
|
)
|
||||||
except HTTPError as e:
|
|
||||||
error(
|
|
||||||
"Issue updating viv see below:"
|
|
||||||
+ a.style("-> ", "red").join(["\n"] + repr(e).splitlines())
|
|
||||||
)
|
|
||||||
if "404" in repr(e):
|
|
||||||
echo("Please check your reference is valid.", style="red")
|
|
||||||
sys.exit(1)
|
|
||||||
|
|
||||||
src = r.read()
|
(hash := hashlib.sha256()).update(src.encode())
|
||||||
(hash := hashlib.sha256()).update(src)
|
|
||||||
sha256 = hash.hexdigest()
|
sha256 = hash.hexdigest()
|
||||||
|
|
||||||
cached_src_file = c.srccache / f"{sha256}.py"
|
cached_src_file = c.srccache / f"{sha256}.py"
|
||||||
|
|
||||||
if not cached_src_file.is_file():
|
if not cached_src_file.is_file():
|
||||||
with cached_src_file.open("w") as f:
|
cached_src_file.write_text(src)
|
||||||
f.write(src.decode())
|
|
||||||
|
|
||||||
return sha256
|
return sha256
|
||||||
|
|
||||||
|
@ -869,7 +875,12 @@ class Config:
|
||||||
"""viv config manager"""
|
"""viv config manager"""
|
||||||
|
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self._cache = Path(os.getenv("XDG_CACHE_HOME", Path.home() / ".cache")) / "viv"
|
self._cache = Path(
|
||||||
|
os.getenv(
|
||||||
|
"VIV_CACHE",
|
||||||
|
Path(os.getenv("XDG_CACHE_HOME", Path.home() / ".cache")) / "viv",
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
def _ensure(self, p: Path) -> Path:
|
def _ensure(self, p: Path) -> Path:
|
||||||
p.mkdir(parents=True, exist_ok=True)
|
p.mkdir(parents=True, exist_ok=True)
|
||||||
|
@ -1015,22 +1026,23 @@ class Viv:
|
||||||
vivenv.show()
|
vivenv.show()
|
||||||
|
|
||||||
def exe(self, args: Namespace) -> None:
|
def exe(self, args: Namespace) -> None:
|
||||||
"""run python/pip in existing vivenv"""
|
"""\
|
||||||
|
run binary/script in existing vivenv
|
||||||
|
|
||||||
|
examples:
|
||||||
|
viv exe <vivenv> pip -- list
|
||||||
|
viv exe <vivenv> python -- script.py
|
||||||
|
"""
|
||||||
|
|
||||||
vivenv = self._match_vivenv(args.vivenv)
|
vivenv = self._match_vivenv(args.vivenv)
|
||||||
|
bin = vivenv.path / "bin" / args.cmd
|
||||||
|
|
||||||
pip_path, python_path = (vivenv.path / "bin" / cmd for cmd in ("pip", "python"))
|
if not bin.exists():
|
||||||
# todo check for vivenv
|
error(f"{args.cmd} does not exist in {vivenv.name}", code=1)
|
||||||
echo(f"executing command within {vivenv.name}")
|
|
||||||
|
|
||||||
cmd = (
|
cmd = [bin, *args.rest]
|
||||||
f"{pip_path} {' '.join(args.cmd)}"
|
|
||||||
if args.subcmd == "pip"
|
|
||||||
else f"{python_path} {' '.join(args.cmd)}"
|
|
||||||
) + " ".join(args.rest)
|
|
||||||
|
|
||||||
echo(f"executing {cmd}")
|
run(cmd, verbose=True)
|
||||||
run(shlex.split(cmd), verbose=True)
|
|
||||||
|
|
||||||
def info(self, args: Namespace) -> None:
|
def info(self, args: Namespace) -> None:
|
||||||
"""get metadata about a vivenv"""
|
"""get metadata about a vivenv"""
|
||||||
|
@ -1190,13 +1202,38 @@ class Viv:
|
||||||
|
|
||||||
def run(self, args: Namespace) -> None:
|
def run(self, args: Namespace) -> None:
|
||||||
"""\
|
"""\
|
||||||
run an app with an on-demand venv
|
run an app/script with an on-demand venv
|
||||||
|
|
||||||
examples:
|
examples:
|
||||||
viv r pycowsay -- "viv isn't venv\!"
|
viv r pycowsay -- "viv isn't venv\!"
|
||||||
viv r rich -b python -- -m rich
|
viv r rich -b python -- -m rich
|
||||||
|
viv r -s <remote python script>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if args.script:
|
||||||
|
env = os.environ
|
||||||
|
name = args.script.split("/")[-1]
|
||||||
|
|
||||||
|
with tempfile.TemporaryDirectory(prefix="viv-") as tmpdir:
|
||||||
|
tmppath = Path(tmpdir)
|
||||||
|
script = tmppath / name
|
||||||
|
if not self.local_source:
|
||||||
|
(tmppath / "viv.py").write_text(
|
||||||
|
fetch_script(
|
||||||
|
"https://raw.githubusercontent.com/daylinmorgan/viv/script-runner/src/viv/viv.py"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
|
script.write_text(fetch_script(args.script))
|
||||||
|
if not args.keep:
|
||||||
|
env.update({"VIV_CACHE": tmpdir})
|
||||||
|
|
||||||
|
sys.exit(
|
||||||
|
subprocess.run(
|
||||||
|
[sys.executable, script, *args.rest], env=env
|
||||||
|
).returncode
|
||||||
|
)
|
||||||
|
else:
|
||||||
_, bin = self._pick_bin(args)
|
_, bin = self._pick_bin(args)
|
||||||
spec = combined_spec(args.reqs, args.requirements)
|
spec = combined_spec(args.reqs, args.requirements)
|
||||||
vivenv = ViVenv(spec)
|
vivenv = ViVenv(spec)
|
||||||
|
@ -1264,7 +1301,10 @@ class Cli:
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
("remove",): [Arg("vivenv", help="name/hash of vivenv", nargs="*")],
|
("remove",): [Arg("vivenv", help="name/hash of vivenv", nargs="*")],
|
||||||
("exe|pip", "exe|python", "info"): [Arg("vivenv", help="name/hash of vivenv")],
|
("run",): [
|
||||||
|
Arg("-s", "--script", help="remote script to run", metavar="<script>")
|
||||||
|
],
|
||||||
|
("exe", "info"): [Arg("vivenv", help="name/hash of vivenv")],
|
||||||
("list", "info"): [
|
("list", "info"): [
|
||||||
Arg(
|
Arg(
|
||||||
"--json",
|
"--json",
|
||||||
|
@ -1336,11 +1376,10 @@ class Cli:
|
||||||
action="store_true",
|
action="store_true",
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
("exe|python", "exe|pip"): [
|
("exe"): [
|
||||||
Arg(
|
Arg(
|
||||||
"cmd",
|
"cmd",
|
||||||
help="command to to execute",
|
help="command to to execute",
|
||||||
nargs="*",
|
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
@ -1359,16 +1398,15 @@ class Cli:
|
||||||
)
|
)
|
||||||
).update(
|
).update(
|
||||||
{
|
{
|
||||||
"exe": dict(
|
"manage": {
|
||||||
pip=dict(help="run cmd with pip"),
|
subcmd: {"help": help, "aliases": [subcmd[0]]}
|
||||||
python=dict(help="run cmd with python"),
|
for subcmd, help in (
|
||||||
),
|
("show", "show current installation"),
|
||||||
"manage": dict(
|
("install", "install fresh viv"),
|
||||||
show=dict(help="show current installation", aliases=["s"]),
|
("update", "update viv version"),
|
||||||
install=dict(help="install fresh viv", aliases=["i"]),
|
("purge", "remove traces of viv"),
|
||||||
update=dict(help="update viv version", aliases=["u"]),
|
)
|
||||||
purge=dict(help="remove traces of viv", aliases=["p"]),
|
}
|
||||||
),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -1397,7 +1435,7 @@ class Cli:
|
||||||
self.parsers[grp].add_argument(*arg.args, **arg.kwargs)
|
self.parsers[grp].add_argument(*arg.args, **arg.kwargs)
|
||||||
|
|
||||||
def _validate_args(self, args: Namespace) -> None:
|
def _validate_args(self, args: Namespace) -> None:
|
||||||
if args.func.__name__ in ("freeze", "shim", "run"):
|
if args.func.__name__ in ("freeze", "shim"):
|
||||||
if not args.reqs:
|
if not args.reqs:
|
||||||
error("must specify a requirement", code=1)
|
error("must specify a requirement", code=1)
|
||||||
if args.func.__name__ in ("freeze", "shim"):
|
if args.func.__name__ in ("freeze", "shim"):
|
||||||
|
@ -1438,6 +1476,14 @@ class Cli:
|
||||||
+ " shouldn't be used with a git-based installation",
|
+ " shouldn't be used with a git-based installation",
|
||||||
1,
|
1,
|
||||||
)
|
)
|
||||||
|
if args.func.__name__ == "run":
|
||||||
|
if not (args.reqs or args.script):
|
||||||
|
error("must specify a requirement or --script", code=1)
|
||||||
|
if args.script and args.reqs:
|
||||||
|
error(
|
||||||
|
"script mode does not support additional requirements currently",
|
||||||
|
code=1,
|
||||||
|
)
|
||||||
|
|
||||||
def _get_subcmd_parser(
|
def _get_subcmd_parser(
|
||||||
self,
|
self,
|
||||||
|
|