fix: add vivenv arg back to info

This commit is contained in:
Daylin Morgan 2023-06-02 07:53:17 -05:00
parent 5ef699944e
commit 8962ab16fa
Signed by: daylin
GPG key ID: C1E52E7DD81DF79F

View file

@ -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