Skip to content

Commit c5cb01a

Browse files
committed
fix(cryptsetup): update the list of actions
1 parent 9cde158 commit c5cb01a

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
@@ -40,10 +40,14 @@ _cryptsetup()
4040
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
4141
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
4242
else
43-
COMPREPLY=($(compgen -W 'open close resize status benchmark
44-
repair erase luksFormat luksAddKey luksRemoveKey luksChangeKey
45-
luksKillSlot luksUUID isLuks luksDump tcryptDump luksSuspend
46-
luksResume luksHeaderBackup luksHeaderRestore' -- "$cur"))
43+
COMPREPLY=($(compgen -W 'benchmark bitlkClose bitlkDump bitlkOpen
44+
close config convert create erase isLuks loopaesClose
45+
loopaesOpen luksAddKey luksChangeKey luksClose luksConfig
46+
luksConvertKey luksDump luksErase luksFormat luksHeaderBackup
47+
luksHeaderRestore luksKillSlot luksOpen luksRemoveKey
48+
luksResume luksSuspend luksUUID open plainClose plainOpen
49+
reencrypt refresh remove repair resize status tcryptClose
50+
tcryptDump tcryptOpen token' -- "$cur"))
4751
fi
4852
else
4953
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)