Misterio77 / flavours

🎨💧 An easy to use base16 scheme manager that integrates with any workflow.
MIT License
501 stars 29 forks source link

Building themes requires path to scheme and template #45

Open heygsiri opened 2 years ago

heygsiri commented 2 years ago

Hi,

I have been tinkering with flavours to make my color configs flexible. Updating, applying, and generating schemes have been a breeze so far. However, building seems to have an issue: I have to provide a path to the .mustache or .yaml files for the scheme and template, otherwise the build command won't work.

Kindly see the asciicast below for an example with scheme nord and template i3. Applying the themes goes seamlessly (although you won't see it due to limitations of asciicinema), but I struggle to build a scheme.

asciicast

I do not have Rust experience although I am more than happy to answer questions to help make this awesome software more awesome :smile:.

Misterio77 commented 2 years ago

Hey!

This is currently intended, as flavours build is a "plumbing command" (intended for use in scripts) that acts as a standalone builder. Meaning it doesn't depend on the caller having a flavours config nor a flavours-managed data directory.

Just to clarify, you don't need to build before applying (applying builds for you, based on your flavours config and data dir). Should you want to script something with flavours build, flavours list can help (it can list scheme paths), and in the future #35 should help too.

heygsiri commented 2 years ago

Thank you for the response.

I am aware that I do not need to build before applying. For now I use flavours build to get a glimpse of the output which helps in planning where the color configuration goes into. Perhaps a switch (such as flavours build -a) to assume the current schemes and templates path?

Misterio77 commented 2 years ago

Hey, sorry for the delay.

This switch would indeed pretty nice. I'll see if i can get it implemented soonish :)