mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-11-13 20:47:53 -06:00
WIP
This commit is contained in:
parent
f1b2b14316
commit
3b9c2e64ca
1 changed files with 4 additions and 3 deletions
|
@ -448,7 +448,7 @@ class ViVenv:
|
|||
a.table((("key", "value"), *((k, v) for k, v in info.items())))
|
||||
|
||||
|
||||
def use(*packages: str, track_exe: bool = False, name: str = "") -> None:
|
||||
def use(*packages: str, track_exe: bool = False, name: str = "") -> ViVenv:
|
||||
"""create a vivenv and append to sys.path
|
||||
|
||||
Args:
|
||||
|
@ -467,6 +467,7 @@ def use(*packages: str, track_exe: bool = False, name: str = "") -> None:
|
|||
vivenv.dump_info(write=True)
|
||||
|
||||
modify_sys_path(vivenv.path)
|
||||
return vivenv
|
||||
|
||||
|
||||
def validate_spec(spec: Tuple[str, ...]) -> None:
|
||||
|
@ -895,7 +896,7 @@ class Viv:
|
|||
|
||||
vivenv.dump_info()
|
||||
|
||||
def self_manage(self, args: Namespace) -> None:
|
||||
def manage(self, args: Namespace) -> None:
|
||||
"""manage viv installation"""
|
||||
echo("not yet implemented. sorry")
|
||||
|
||||
|
@ -1017,7 +1018,7 @@ class Viv:
|
|||
parents=[p_vivenv_arg],
|
||||
)
|
||||
|
||||
self._get_subcmd_parser(subparsers, name="self", attr="self_manage")
|
||||
self._get_subcmd_parser(subparsers, name="manage")
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
Loading…
Reference in a new issue