generate
/gen
/completions
command: Generate shell completions
#44
Labels
enhancement
New feature or request
I see that you are using
clap
for the CLI, there is https://crates.io/crates/clap_complete to automatically generate shell completions. It would be nice, to be able to generate completions for different shells by just callingbartib completions >> {my_shell_profile}
. Here is a possible implementation: https://github.com/rustic-rs/rustic/blob/main/src/commands/completions.rsDepending on if you want to further generate other files (e.g a
bartib.toml
for configuration of e.g. style of reports, default timezones etc.) it would be useful to have that underbartib gen completions
(in the future maybe there could be abartib gen config
or just the top-levelbartib completions
.The text was updated successfully, but these errors were encountered: