Skip to content

Commit

Permalink
completions: add lpass import
Browse files Browse the repository at this point in the history
Add import command to completions files.

Signed-off-by: Bob Copeland <[email protected]>
  • Loading branch information
Bob Copeland committed Sep 16, 2016
1 parent 873b6b6 commit f51026e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion contrib/completions-lpass.fish
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ complete -f -c lpass -n '__lpass_needs_command' -a sync \
-d 'Synchronize local cache with server'
complete -f -c lpass -n '__lpass_needs_command' -a export \
-d 'Export passwords as CSV'
complete -f -c lpass -n '__lpass_needs_command' -a import \
-d 'Import CSV as passwords'
complete -f -c lpass -n '__lpass_needs_command' -a share \
-d 'Perform operations on a share'

Expand All @@ -104,7 +106,7 @@ complete -f -c lpass \

# --sync=SYNC
complete -f -c lpass \
-n '__lpass_using_command show ls add edit generate dubplicate rm export' \
-n '__lpass_using_command show ls add edit generate dubplicate rm export import' \
-r -l sync \
-d 'Synchronize local cache with server: auto | now | no'

Expand Down
4 changes: 2 additions & 2 deletions contrib/lpass_bash_completion
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ __lpass_complete_opt()
ls)
opts="--sync --long --color"
;;
mv|duplicate|rm|export)
mv|duplicate|rm|export|import)
opts="--sync --color"
;;
edit)
Expand Down Expand Up @@ -80,7 +80,7 @@ _lpass()

local all_cmds="
login logout passwd show ls mv add edit generate
duplicate rm sync export share
duplicate rm sync export import share
"
local share_cmds="
userls useradd usermod userdel create rm
Expand Down

0 comments on commit f51026e

Please sign in to comment.