mirror of
https://github.com/daylinmorgan/viv.git
synced 2025-02-21 23:05:50 -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())))
|
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
|
"""create a vivenv and append to sys.path
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
@ -467,6 +467,7 @@ def use(*packages: str, track_exe: bool = False, name: str = "") -> None:
|
||||||
vivenv.dump_info(write=True)
|
vivenv.dump_info(write=True)
|
||||||
|
|
||||||
modify_sys_path(vivenv.path)
|
modify_sys_path(vivenv.path)
|
||||||
|
return vivenv
|
||||||
|
|
||||||
|
|
||||||
def validate_spec(spec: Tuple[str, ...]) -> None:
|
def validate_spec(spec: Tuple[str, ...]) -> None:
|
||||||
|
@ -895,7 +896,7 @@ class Viv:
|
||||||
|
|
||||||
vivenv.dump_info()
|
vivenv.dump_info()
|
||||||
|
|
||||||
def self_manage(self, args: Namespace) -> None:
|
def manage(self, args: Namespace) -> None:
|
||||||
"""manage viv installation"""
|
"""manage viv installation"""
|
||||||
echo("not yet implemented. sorry")
|
echo("not yet implemented. sorry")
|
||||||
|
|
||||||
|
@ -1017,7 +1018,7 @@ class Viv:
|
||||||
parents=[p_vivenv_arg],
|
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()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue