mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-03 13:30:44 +00:00
8cb217cd19
* feature: add global bg_color option * period * fmt * oops, format again * update default config + schema * rename field + apply it to dialogs * update dialog to just draw once * handle basic * add test + some small tweaks --------- Co-authored-by: Clement Tsang <34804052+ClementTsang@users.noreply.github.com>
Config JSON Schema
Generation
These are automatically generated from code using schemars. They're locked
behind a feature flag to avoid building unnecessary code for release builds, and you can generate them like so:
# Will print out to stdout
cargo run --features="generate_schema" -- --generate_schema
# e.g. for nightly
cargo run --features="generate_schema" -- --generate_schema > schema/nightly/bottom.json
# e.g. for a specific version
cargo run --features="generate_schema" -- --generate_schema 0.12.0 > schema/v0.12.0/bottom.json
Alternatively, run the scripts/schema/generate.sh script (for stable releases) or scripts/schema/nightly.sh
(for nightly), which does all of this for you.
Publication
To publish these schemas:
Stable
- Run
scripts/schema/generate.sh <YOUR_VERSION>. - Make a PR and merge it.
- Then, make a PR to schemastore to update the catalog. Here's an example of a PR.
Nightly
- Run
scripts/schema/nightly.sh. - Make a PR and merge it.