Skip to content

Commit

Permalink
implement completion for age and age-keygen
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin F. Konrad authored and ridiculousfish committed May 27, 2023
1 parent 5ecd584 commit ffb6168
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -35,6 +35,8 @@ Completions
- ``ar`` (:issue:`9719`)
- ``gcc`` completion descriptions have been clarified and shortened (:issue:`9722`).
- ``qdbus`` completions now properly handle tags (:issue:`9776`).
- ``age`` (:issue:`9813`).
- ``age-keygen`` (:issue:`9813`).

Improved terminal support
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
3 changes: 3 additions & 0 deletions share/completions/age-keygen.fish
@@ -0,0 +1,3 @@
complete -c age-keygen -s o -l output -n "not __fish_contains_opt -s o output" -d "output file for secret key"
complete -c age-keygen -s y -n "not __fish_contains_opt -s y" -d "read identity file, print recipient(s)"
complete -c age -l version -d "print version number"
9 changes: 9 additions & 0 deletions share/completions/age.fish
@@ -0,0 +1,9 @@
complete -c age -s e -l encrypt -n "not __fish_contains_opt -s d decrypt" -d "encrypt"
complete -c age -s r -l recipient -n "not __fish_contains_opt -s d decrypt; and not __fish_contains_opt -s p passphrase" -d "public key"
complete -c age -s R -l recipients-file -n "not __fish_contains_opt -s d decrypt; and not __fish_contains_opt -s p passphrase" -d "file with public key(s)"
complete -c age -s a -l armor -n "not __fish_contains_opt -s d decrypt" -d "PEM encode ciphertext"
complete -c age -s p -l passphrase -n "not __fish_contains_opt -s d decrypt; and not __fish_contains_opt -s r recipient -s R recipients-file" -d "passphrase"
complete -c age -s d -l decrypt -n "not __fish_contains_opt -s e encrypt" -d "decrypt"
complete -c age -s i -l identity -n "__fish_contains_opt -s e encrypt -s d decrypt" -d "file with private key(s)"
complete -c age -s j -n "__fish_contains_opt -s e encrypt -s d decrypt" -d "plugin"
complete -c age -l version -d "print version number"

0 comments on commit ffb6168

Please sign in to comment.