From 6bf2ae4e8383a9275c731b475f5684be51457192 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Tue, 8 Aug 2023 00:53:28 -0500 Subject: [PATCH] fix: use full id's for viv list -q --- src/viv/viv.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/viv/viv.py b/src/viv/viv.py index a61b2c2..8e1abb0 100755 --- a/src/viv/viv.py +++ b/src/viv/viv.py @@ -53,7 +53,7 @@ from typing import ( from urllib.error import HTTPError from urllib.request import urlopen -__version__ = "23.8a1-10-gdadf4da-dev" +__version__ = "23.8a1-11-gc453b8f-dev" class Spinner: @@ -838,7 +838,7 @@ class ViVenv: spec = self._validate_spec(spec) id = id if id else get_hash(spec, track_exe) - self.name = name if name else id[:8] + self.name = name if name else self.id[:8] self.set_path(path) if not metadata: @@ -1363,7 +1363,9 @@ class Viv: vivenvs = self._cache.vivenvs if quiet: - sys.stdout.write("\n".join(vivenvs) + "\n") + sys.stdout.write( + "\n".join((vivenv.meta.id for _, vivenv in vivenvs.items())) + "\n" + ) elif len(self._cache.vivenvs) == 0: log.info("no vivenvs setup") elif len(vivenvs) == 0 and filter: