Skip to content

Commit ebd3dbc

Browse files
committed
fix(cryptsetup): update the list of actions
1 parent 6806708 commit ebd3dbc

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

completions/cryptsetup

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,14 @@ _cryptsetup()
4242
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
4343
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
4444
else
45-
COMPREPLY=($(compgen -W 'open close resize status benchmark
46-
repair erase luksFormat luksAddKey luksRemoveKey luksChangeKey
47-
luksKillSlot luksUUID isLuks luksDump tcryptDump luksSuspend
48-
luksResume luksHeaderBackup luksHeaderRestore' -- "$cur"))
45+
COMPREPLY=($(compgen -W 'benchmark bitlkClose bitlkDump bitlkOpen
46+
close config convert create erase isLuks loopaesClose
47+
loopaesOpen luksAddKey luksChangeKey luksClose luksConfig
48+
luksConvertKey luksDump luksErase luksFormat luksHeaderBackup
49+
luksHeaderRestore luksKillSlot luksOpen luksRemoveKey
50+
luksResume luksSuspend luksUUID open plainClose plainOpen
51+
reencrypt refresh remove repair resize status tcryptClose
52+
tcryptDump tcryptOpen token' -- "$cur"))
4953
fi
5054
else
5155
local args

test/t/test_cryptsetup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,7 @@ def test_1(self, completion):
99
@pytest.mark.complete("cryptsetup -", require_cmd=True)
1010
def test_2(self, completion):
1111
assert completion
12+
13+
@pytest.mark.complete("cryptsetup luksE", require_cmd=True)
14+
def test_github_issue758(self, completion):
15+
assert completion == "rase"

0 commit comments

Comments
 (0)