Open alilleybrinker opened 8 months ago
Quick design thing. Related to this, I'm thinking of the following:
languages.json
into languages.toml
, so it's more human-writeable..data
folder called stars.toml
that just maps languages to stars data, along with an updated_on
timestamp at the top to say when the file was last updated.README
to include a regeneration timestamp at the top.So the workflow as a contributor would be:
languages.toml
./update.rs -u
to update cached data for any langs on GitHub../update.rs -g
to generate a new README.md
file.In terms of commands, I'd like to replace the existing commands and rename the script, so it becomes:
./langs [add/remove/edit/update]
.
add
would add a new language, sync with external API if necessary, update caches, and update the READMEremove
would remove an existing language, clear its data from the cache, and update the READMEedit
would edit an existing language, clear its data from the caches, and update the READMEupdate
would sync with external APIs, update the caches, and update the READMEAlso probably just have one cache file. Maybe consider even making it SQLite
Fixes #102.
This replaces the Python script for updating data for the tracked languages and regenerating the README with a new Cargo script, which lets us use Rust code instead of Python!