savoirfairelinux / cqfd

cqfd helps running commands inside the Docker container configured for your project, keeping the user and working directory the same inside the container
GNU General Public License v3.0
64 stars 31 forks source link

Generate dynamically the list of flavors #102

Closed gportay closed 1 year ago

gportay commented 1 year ago

Hello,

This PR intends to reduce the cumbersome of maintaining the list of flavors if having lots of in the .cqfdrc.

The addition of the global variable build_flavors in the first commit is just for consistency with other properties. It does not harm much, and it may fix potential flavor override if additional sections are loaded before cqfd flavors, and if those sections (re)define the property flavors. This cannot happen for now.

Regards, Gaël

gportay commented 1 year ago

ping?

joufellasfl commented 1 year ago

Thanks for this improvement @gportay, this lightens up the configs. I adapted the doc/samples/tests accordingly.