mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
fix: cmd -> subcmd
This commit is contained in:
parent
4a1f01f459
commit
3cf2dce767
1 changed files with 3 additions and 3 deletions
|
@ -50,7 +50,7 @@ from typing import (
|
|||
from urllib.error import HTTPError
|
||||
from urllib.request import urlopen
|
||||
|
||||
__version__ = "23.5a4-29-g0ccf72c-dev"
|
||||
__version__ = "23.5a4-29-g4a1f01f-dev"
|
||||
|
||||
|
||||
class Config:
|
||||
|
@ -1411,7 +1411,7 @@ class Cli:
|
|||
error("-p/--path and -s/--standalone are mutually exclusive", code=1)
|
||||
|
||||
if args.func.__name__ == "manage":
|
||||
if args.cmd == "install" and self.viv.local_source:
|
||||
if args.subcmd == "install" and self.viv.local_source:
|
||||
error(f"found existing viv installation at {self.viv.local_source}")
|
||||
echo(
|
||||
"use "
|
||||
|
@ -1420,7 +1420,7 @@ class Cli:
|
|||
style="red",
|
||||
)
|
||||
sys.exit(1)
|
||||
if args.cmd == "update":
|
||||
if args.subcmd == "update":
|
||||
if not self.viv.local_source:
|
||||
error(
|
||||
a.style("viv manage update", "bold")
|
||||
|
|
Loading…
Reference in a new issue