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

Configure default formatter #56

Open
MartinDelille opened this issue Aug 9, 2023 · 1 comment
Open

Configure default formatter #56

MartinDelille opened this issue Aug 9, 2023 · 1 comment

Comments

@MartinDelille
Copy link
Contributor

Hi @sbeyer !

I'm now a long time user of bandit and I wondered if there was a way to configure the default formatter without passing it to the arg list ?

Here is my motivation: I have several test project and I sometimes remove the user parameter containing the formatter option so I regularly need to add again the --formatter qt to the project run argument.

Would it be possible to change the default formatter like defining a macro before including <bandit.h> ? This could also be a conan option.

I'll be happy to have your though about it before starting implementing something.

@sbeyer
Copy link
Member

sbeyer commented Aug 9, 2023

I remember I did some work on decoupling formatters etc from the core of bandit, so that people can write their own formatters and register them. I guess that also included setting the default formatter.

I'm going to check later today what happened to that code. It's probably in one of those branches I haven't touched for so long.

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

No branches or pull requests

2 participants