Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generate-scheme subcommand #31

Merged
merged 4 commits into from
Jul 3, 2024
Merged

Conversation

JamyGolden
Copy link
Member

Afaik this is the last feature needed to achieve feature parity with Flavours. There is more information in this discussion: Misterio77/flavours#85

Test

Make sure to first git checkout out this branch.

  • Print to stdout: cargo run generate-scheme path/to/image.png -
  • Outfile: cargo run generate-scheme path/to/image.png path/to/outfile.yaml
  • Save scheme: cargo run generate-scheme path/to/image.png --save to save it and cargo run list --custom to print these schemes

These are the basics, cargo run generate-scheme --help for more info about setting slug, author, name, etc.

@JamyGolden JamyGolden requested a review from belak June 27, 2024 15:36
@JamyGolden JamyGolden requested a review from a team as a code owner June 27, 2024 15:36
@JamyGolden JamyGolden requested review from tinted-theming-bot and removed request for a team June 27, 2024 15:36
@JamyGolden JamyGolden force-pushed the jamy/feature/generate-scheme branch 2 times, most recently from ab4cf53 to 0eac1a2 Compare July 3, 2024 14:59
- Add `tinty generate-scheme` command to generate a scheme based on
  provided image input, with the included functionality of saving this
  scheme file and applying it with `tinty apply`.
- Add `--custom` flag for `tinty lint` subcommand to list custom
  schemes saved with `tinnty generate-scheme`.
- Add basic tests.
- Update tinted-builder-rust crate
This previously copied the `target/` dir locally which could take some time
@JamyGolden JamyGolden force-pushed the jamy/feature/generate-scheme branch from 2e95648 to 5139a8d Compare July 3, 2024 15:02
@JamyGolden JamyGolden merged commit 48d0c09 into main Jul 3, 2024
5 checks passed
@JamyGolden JamyGolden deleted the jamy/feature/generate-scheme branch July 3, 2024 15:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant