Add Bash completion script so you can tab-complete the borgmatic command-line.

This commit is contained in:
Dan Helfman
2022-05-26 10:27:53 -07:00
parent 691ec96909
commit 77b84f8a48
7 changed files with 123 additions and 5 deletions
+5
View File
@@ -0,0 +1,5 @@
import subprocess
def test_bash_completion_runs_without_error():
subprocess.check_call('eval "$(borgmatic --bash-completion)"', shell=True)
@@ -0,0 +1,5 @@
from borgmatic.commands import completion as module
def test_bash_completion_does_not_raise():
assert module.bash_completion()