Skip to content

option to exclude tags from esgpull show? #64

@alaniwi

Description

@alaniwi

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

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions