borg icon indicating copy to clipboard operation
borg copied to clipboard

update shell completions for borg2

Open ThomasWaldmann opened this issue 3 years ago • 5 comments

this needs to be done by someone familiar with this, preferably before it gets released.

ThomasWaldmann avatar Sep 08 '22 22:09 ThomasWaldmann

OK, bash was done, thanks to @helmutg!

The other shell completions likely need similar updates.

ThomasWaldmann avatar Jan 18 '23 13:01 ThomasWaldmann

#8292 did some changes to the repo-related commands, e.g. rcreate is now repo-create.

ThomasWaldmann avatar Sep 08 '24 13:09 ThomasWaldmann

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.

ThomasWaldmann avatar Nov 05 '24 08:11 ThomasWaldmann

@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. :-)

ThomasWaldmann avatar May 19 '25 12:05 ThomasWaldmann

The same fix needs to be done for the fish and zsh shell completions.

ThomasWaldmann avatar May 19 '25 15:05 ThomasWaldmann

Closing due to #9172.

ThomasWaldmann avatar Nov 16 '25 01:11 ThomasWaldmann