bacon icon indicating copy to clipboard operation
bacon copied to clipboard

Default Templates

Open mkohlhaas opened this issue 11 months ago • 2 comments

Could we have default templates for the different analyzers bacon supports?

e.g.

bacon --init --cpp
bacon --init --python
bacon --init --js

or:

bacon --init --analyzer cpp
bacon --init --analyzer python
bacon --init --analyzer js

default being rust.

Or even better supporting build systems for C++:

bacon --init --meson
bacon --init --cmake
bacon --init --scons
...

mkohlhaas avatar Mar 05 '25 01:03 mkohlhaas

This might be a good idea.

I'm waiting for opinions here.

Canop avatar Mar 05 '25 05:03 Canop

I only use bacon for rust right now so I don't have a horse in the race. However, personally I no longer use much from the default job file because it's already included by default and thus I mostly empty it out and just keep and modify the ones that are special for that project. I could see this being useful if for example I wanted to use the same job names across languages and wanted a way to do that but I'd be concerned that in each project I'd need to maintain any updates I make to those defaults I want for all projects that I now specify in prefs.toml. I'm uncertain as to how I feel personally as it haven't not actually used it but sharing what I do in case that's of any value.

With regard to if it's a good idea in general though, I think it would be good as it allows for more workflows (even if those don't work for me). My only concern is the curation of the templates. It would be good if there was an easy way to get community feedback on those from people who regularly use them.

c-git avatar Mar 05 '25 14:03 c-git