mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
fix: add vivenv arg back to info
This commit is contained in:
parent
5ef699944e
commit
8962ab16fa
1 changed files with 29 additions and 20 deletions
|
@ -51,7 +51,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-34-gd1ea8c3-dev"
|
__version__ = "23.5a4-35-g9229337-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -1263,7 +1263,7 @@ class Cli:
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
("remove",): [Arg("vivenv", help="name/hash of vivenv", nargs="*")],
|
("remove",): [Arg("vivenv", help="name/hash of vivenv", nargs="*")],
|
||||||
("exe|pip", "exe|python"): [Arg("vivenv", help="name/hash of vivenv")],
|
("exe|pip", "exe|python", "info"): [Arg("vivenv", help="name/hash of vivenv")],
|
||||||
("list", "info"): [
|
("list", "info"): [
|
||||||
Arg(
|
Arg(
|
||||||
"--json",
|
"--json",
|
||||||
|
@ -1343,24 +1343,33 @@ class Cli:
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
cmds = {
|
(
|
||||||
"list": None,
|
cmds := dict.fromkeys(
|
||||||
"exe": dict(
|
(
|
||||||
pip=dict(help="run cmd with pip"),
|
"list",
|
||||||
python=dict(help="run cmd with python"),
|
"shim",
|
||||||
),
|
"run",
|
||||||
"remove": None,
|
"exe",
|
||||||
"freeze": None,
|
"remove",
|
||||||
"info": None,
|
"freeze",
|
||||||
"manage": dict(
|
"info",
|
||||||
show=dict(help="show current installation", aliases=["s"]),
|
"manage",
|
||||||
install=dict(help="install fresh viv", aliases=["i"]),
|
)
|
||||||
update=dict(help="update viv version", aliases=["u"]),
|
)
|
||||||
purge=dict(help="remove traces of viv", aliases=["p"]),
|
).update(
|
||||||
),
|
{
|
||||||
"shim": None,
|
"exe": dict(
|
||||||
"run": None,
|
pip=dict(help="run cmd with pip"),
|
||||||
}
|
python=dict(help="run cmd with python"),
|
||||||
|
),
|
||||||
|
"manage": dict(
|
||||||
|
show=dict(help="show current installation", aliases=["s"]),
|
||||||
|
install=dict(help="install fresh viv", aliases=["i"]),
|
||||||
|
update=dict(help="update viv version", aliases=["u"]),
|
||||||
|
purge=dict(help="remove traces of viv", aliases=["p"]),
|
||||||
|
),
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
def __init__(self, viv: Viv) -> None:
|
def __init__(self, viv: Viv) -> None:
|
||||||
self.viv = viv
|
self.viv = viv
|
||||||
|
|
Loading…
Reference in a new issue