Skip to content

Please document the usage of @text #78

@brlin-tw

Description

@brlin-tw

I had to dig through the source code for this syntax that does exactly what I want, it should really be documented in the README.

Example usage:

# Parse out all the text of the Git glossary terms
curl -s https://git-scm.com/docs/gitglossary \
    | hq '{ headings: dt.hdlist1 | [{ text: @text }] }' \
    | jq --raw-output '.headings[].text'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions