update shell completions for borg2
this needs to be done by someone familiar with this, preferably before it gets released.
OK, bash was done, thanks to @helmutg!
The other shell completions likely need similar updates.
#8292 did some changes to the repo-related commands, e.g. rcreate is now repo-create.
I am trying to update the zsh completions...
Update: I did quite some changes there, but only the easy / obvious stuff - I am not familiar with writing zsh completions, so this will need someone who is to finish and polish it.
Opened https://github.com/borgbackup/borg/issues/8526 for the remaining todo.
@helmutg I did an update in #8850 for the bash completions, using PyCharm's Junie AI.
The "repo::archive" completion is still present in the bash code, but borg2 does not do that anymore. It is now separated into --repo R (or BORG_REPO env var) and the archive name is usually a positional argument. Guess this will need someone who is more clever than Junie. :-)
The same fix needs to be done for the fish and zsh shell completions.
Closing due to #9172.