Skip to content

FR: Non-HTML index format for machine consumption (JSON?) #64

Description

@kentfredric

I've been musing over writing a general CLI interface to this website, but my main hurdle seems to be enumerating the end-points, as presently, my only option is 🤮 parsing HTML 🤮

A good start would be a file in /results/ like "index.json", which could at least give a list of repos like:

[
   {     
         "name": "gentoo",
         "description": "Gentoo Main Repo",
         "repo_url": "https://github.com/gentoo/gentoo",
   },
   { "name": "kde", ... },
   ...
]

The data-format for each sub-layer though still has to be worked out. Just the "list of repos that are tracked" seems more likely to be an arbitrary thing than what checks are available, and thus, much harder to encode in software.

But ideally I want to be able to do something like:

# gqa_l9 repos
gentoo
kde
pentoo
rust
science
# gqa_l9 repos --verbose
gentoo - Gentoo Main Repo : https://github.com/gentoo/gentoo

I think ideally, this file could be constructed in such a way that the main html page is generated from it, which makes your ability to ensure consistency is a little better.

I've intentionally left out any hints of references to deeper, similarly useful data structures due to not really knowing how they should look yet, and the the initial goal here is to be able to ingest the content shown on the HTML page, without needing an HTML parser, and presently loading data from those directories is an exercise for the consumer, where the only inferrable data is the "name" element, which must map to the /results/REPONAME/ stuff.

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