mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
refactor: swap hardcode with loop
This commit is contained in:
parent
993e0e699b
commit
439d5292c1
1 changed files with 10 additions and 11 deletions
|
@ -50,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-43-gcdeed9f-dev"
|
__version__ = "23.5a4-43-g993e0e6-dev"
|
||||||
|
|
||||||
|
|
||||||
class Spinner:
|
class Spinner:
|
||||||
|
@ -1361,16 +1361,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"]),
|
}
|
||||||
),
|
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue