#!/bin/bash
# g3g - GPG helper
set -e
source "/home/zwelch/src/mcf/mcsh-release/install/share/mcsh/mcsh.sh"
lib_load 'sec/tool/gpg'
######
# Key management
g3g_key() { cmd_dispatch "$@"; }
g3g_key_usage() {
cat <<USAGE
<cmd>
GPG Key Management Commands:
gen <name> <comment> <email> [<passphrase>]
Generates a new key pair
USAGE
}
g3g_key_gen() {
min_args 3 "$@"
local gpg_key_name=$1
local gpg_key_comment=$2
local gpg_key_email=$3
local gpg_key_passphrase=$4
gpg_key_gen
}
######
# Command
######
# Main
g3g_usage() {
cat <<USAGE
<cmd>
GPG Commands:
sign <key> <file> Uses the key to sign a file
key ... Key management commands
USAGE
}
app_run "$@"
Generated on Tue Jul 4 17:00:10 PDT 2017 by mcsh d14 v0.21.0.