From b2742dc28d1ff9001cd784455bbdf9cf29539c30 Mon Sep 17 00:00:00 2001 From: Laria Carolin Chabowski Date: Thu, 14 Sep 2017 07:42:50 +0200 Subject: Implement remaining subcommands --- config/config.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index e925be3..7454d7a 100644 --- a/config/config.go +++ b/config/config.go @@ -1,6 +1,7 @@ package config import ( + "code.laria.me/petrific/gpg" "fmt" "github.com/BurntSushi/toml" "github.com/adrg/xdg" @@ -32,6 +33,10 @@ func LoadConfig(path string) (config Config, err error) { return } +func (c Config) GPGSigner() gpg.Signer { + return gpg.Signer{c.Signing.Key} +} + // Get gets a value from the StorageConfig, taking care about type checking. // ptr must be a pointer or this method will panic. // ptr will only be changed, if returned error != nil -- cgit v1.2.3-70-g09d2