Skip to content

Commit

Permalink
fix(cryptsetup): update the list of actions
Browse files Browse the repository at this point in the history
  • Loading branch information
akinomyoga committed Jun 14, 2022
1 parent 9cde158 commit c5cb01a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
12 changes: 8 additions & 4 deletions completions/cryptsetup
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@ _cryptsetup()
COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
else
COMPREPLY=($(compgen -W 'open close resize status benchmark
repair erase luksFormat luksAddKey luksRemoveKey luksChangeKey
luksKillSlot luksUUID isLuks luksDump tcryptDump luksSuspend
luksResume luksHeaderBackup luksHeaderRestore' -- "$cur"))
COMPREPLY=($(compgen -W 'benchmark bitlkClose bitlkDump bitlkOpen
close config convert create erase isLuks loopaesClose
loopaesOpen luksAddKey luksChangeKey luksClose luksConfig
luksConvertKey luksDump luksErase luksFormat luksHeaderBackup
luksHeaderRestore luksKillSlot luksOpen luksRemoveKey
luksResume luksSuspend luksUUID open plainClose plainOpen
reencrypt refresh remove repair resize status tcryptClose
tcryptDump tcryptOpen token' -- "$cur"))
fi
else
local args
Expand Down
4 changes: 4 additions & 0 deletions test/t/test_cryptsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,7 @@ def test_1(self, completion):
@pytest.mark.complete("cryptsetup -", require_cmd=True)
def test_2(self, completion):
assert completion

@pytest.mark.complete("cryptsetup luksE", require_cmd=True)
def test_github_issue758(self, completion):
assert completion == "rase"

0 comments on commit c5cb01a

Please sign in to comment.