-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from bergercookie/master
Add show-only subcommand in CLI + Fish completion file
- Loading branch information
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# subcommands | ||
complete -xc totp -n '__fish_use_subcommand' -a show -d 'Show the current TOTP token for a registered entry' | ||
complete -xc totp -n '__fish_use_subcommand' -a add -d 'Add a new TOTP entry to the database' | ||
|
||
complete -xc totp -n '__fish_seen_subcommand_from show' -a '-n --nocopy' -d 'Show TOKEN but don\'t copy to clipboard' | ||
|
||
# 2FA codes | ||
test -z "$PASSWORD_STORE_DIR"; and set PASSWORD_STORE_DIR "$HOME/.password-store" | ||
complete -xc totp -a '(command ls $PASSWORD_STORE_DIR/2fa)' -d "2FA code" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters