Skip to content
This repository has been archived by the owner on Oct 25, 2018. It is now read-only.

Commit

Permalink
added gui revcert
Browse files Browse the repository at this point in the history
helps with #88
  • Loading branch information
diveshuttam committed Aug 23, 2018
1 parent 8ff762f commit 4a23760
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion src/gui/key/revcert.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
gui_key_revcert(){
message error "<tt> ${FUNCNAME[0]} \n not implemented yet </tt>"
description=$(yad --title="EasyGnuPG | Revcert" \
--text="Generate revcert for $GPG_KEY" \
--form \
--columns=2 \
--field="Description" \
--button=gtk-yes \
--button=gtk-quit \
--borders=10 | cut -d'|' -f1)
output=$(call cmd_key_revcert $description)

err=$?
is_true $DEBUG && echo "$output"

if [[ $err == 0 ]]; then
message info "Revocation certificate generated successfully"
else
fail_details=$(echo "$output" | grep '^gpg:' | uniq | pango_raw)
message error "Failed to generate revocation certificate for $GPG_KEY.\n <tt>$fail_details</tt>"
return 1
fi
}
#
# This file is part of EasyGnuPG. EasyGnuPG is a wrapper around GnuPG
Expand Down

0 comments on commit 4a23760

Please sign in to comment.