-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It would be good to have a quick way to get a list of query hashes and tags without it taking a long time to look through the legacy db that has been converted from synda, as is happening when I run esgpull show
without any command line arguments. I am currently using the standalone script below. Maybe worth supporting some usage such as:
esgpull show --exclude LEGACY
(I am envisaging that multiple --exclude
options could be given if there are other known big queries.)
Thanks.
from esgpull import Esgpull, Query
from esgpull.models import FileStatus
from esgpull.cli.utils import init_esgpull
esg = init_esgpull(False)
esg.graph.load_db()
graph = esg.graph
for q in graph.queries.values():
name = q.name
tagnames = [tag.name for tag in q.tags]
print(f"{name} : {', '.join(tagnames)}")
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request