From db28a40b716af305e570424a1516d1ad396fcaf5 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 8 Mar 2009 12:23:10 +0100 Subject: continued cryptsetup completion --- etc/completions/_cryptsetup | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'etc/completions/_cryptsetup') diff --git a/etc/completions/_cryptsetup b/etc/completions/_cryptsetup index 05a5065..3d34bef 100644 --- a/etc/completions/_cryptsetup +++ b/etc/completions/_cryptsetup @@ -1,11 +1,28 @@ #compdef cryptsetup -typeset expl - -if (( CURRENT == 2 )) { +function _cryptsetup_action { + typeset expl _wanted action expl action \ compadd create remove status resize \ luks{Format,Open,Close,{Add,Remove}Key} \ luks{KillSlot,UUID,Dump} \ isLuks } + +_arguments -n \ + {-h,--hash}':hash' \ + {-c,--cipher}':cipher specification' \ + {-y,--verify-passphrase} \ + {-d,--key-file}':key file:_files' \ + {-S,--key-slot}':key slot' \ + {-s,--key-size}':key size (bits)' \ + {-b,--size}':device size (sectors)' \ + {-o,--offset}':start offset' \ + {-p,--skip}':skip data (sectors)' \ + --readonly \ + {-i,--iter-time}':password processing time (milliseconds)' \ + {-q,--batch-mode} \ + {-t,--timeout}':password timeout (seconds)' \ + {-T,--tries}':passwort retries' \ + '--align-payload=-:payload boundary align (512-byte sectors)' \ + ':action:_cryptsetup_action' -- cgit v1.2.3