diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2017-09-14 07:42:50 +0200 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2017-09-26 21:35:41 +0200 |
commit | b2742dc28d1ff9001cd784455bbdf9cf29539c30 (patch) | |
tree | 2cac9dff572edbfc05588c33cce76a3dbb406d15 /config | |
parent | 9ddda1c317dbeaab1380e46ebf48eba9566a90e2 (diff) | |
download | petrific-b2742dc28d1ff9001cd784455bbdf9cf29539c30.tar.gz petrific-b2742dc28d1ff9001cd784455bbdf9cf29539c30.tar.bz2 petrific-b2742dc28d1ff9001cd784455bbdf9cf29539c30.zip |
Implement remaining subcommands
Diffstat (limited to 'config')
-rw-r--r-- | config/config.go | 5 |
1 files changed, 5 insertions, 0 deletions
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 |