radhermit / bugbite

library and tools for bug, issue, and ticket mangling
0 stars 0 forks source link

attachment create: support pulling relevant compression option defaults from the config #47

Open radhermit opened 5 months ago

radhermit commented 5 months ago

It could be useful to be able to override the default compression type via config option without having to specify an explicit compression type in the related --compress <type> option for every call.

This would probably require collapsing the type argument to a enum value while running instead of internally via clap parsing since the config object wouldn't be available in that context.

radhermit commented 5 months ago

Also, being able to set defaults for --auto-compress and --auto-truncate per connection could be useful as well since the default setup with mariadb/mysql limits it to 1Mb.