From 6d1efe0200cf967a207ede5814f5e90b95a9fc91 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Fri, 10 Oct 2014 17:50:43 +0400 Subject: [PATCH] Docstrings, gofmt. #122 --- utils/gpg.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/utils/gpg.go b/utils/gpg.go index 37221758..79a55da1 100644 --- a/utils/gpg.go +++ b/utils/gpg.go @@ -43,11 +43,12 @@ type GpgSigner struct { keyRef string keyring, secretKeyring string passphrase, passphraseFile string - batch bool + batch bool } +// SetBatch control --no-tty flag to gpg func (g *GpgSigner) SetBatch(batch bool) { - g.batch = batch + g.batch = batch } // SetKey sets key ID to use when signing files @@ -86,7 +87,7 @@ func (g *GpgSigner) gpgArgs() []string { args = append(args, "--passphrase-file", g.passphraseFile) } if g.batch { - args = append(args, "--no-tty") + args = append(args, "--no-tty") } return args