mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-08 22:30:41 +00:00
Docstrings, gofmt. #122
This commit is contained in:
+4
-3
@@ -43,11 +43,12 @@ type GpgSigner struct {
|
|||||||
keyRef string
|
keyRef string
|
||||||
keyring, secretKeyring string
|
keyring, secretKeyring string
|
||||||
passphrase, passphraseFile string
|
passphrase, passphraseFile string
|
||||||
batch bool
|
batch bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetBatch control --no-tty flag to gpg
|
||||||
func (g *GpgSigner) SetBatch(batch bool) {
|
func (g *GpgSigner) SetBatch(batch bool) {
|
||||||
g.batch = batch
|
g.batch = batch
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetKey sets key ID to use when signing files
|
// 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)
|
args = append(args, "--passphrase-file", g.passphraseFile)
|
||||||
}
|
}
|
||||||
if g.batch {
|
if g.batch {
|
||||||
args = append(args, "--no-tty")
|
args = append(args, "--no-tty")
|
||||||
}
|
}
|
||||||
|
|
||||||
return args
|
return args
|
||||||
|
|||||||
Reference in New Issue
Block a user