houseabsolute / precious

One code quality tool to rule them all
Apache License 2.0
82 stars 4 forks source link

Possibly allow for arbitrary config file name #13

Closed oalders closed 2 years ago

oalders commented 2 years ago

I introduced a precious.toml file internally at $work and there was a suggestion to use .precious.toml in order to hide the file from the people who aren't yet using the tool. It would be nice to allow for an arbitrary config file name to be supplied or at least for a config file to have a leading dot.

I could work on this if it's something you're amenable to.

autarch commented 2 years ago

I'm open to a --config/-c flag for the main command. I think it'd also be fine to have it check for both precious.toml and .precious.toml when it looks for a config file.

autarch commented 2 years ago

Heh, then I looked and there already is a --config option. I just forgot.

autarch commented 2 years ago

Done in v0.1.3