Fixed all tests and binaries to compile

This commit is contained in:
Ethan Frey
2017-06-20 18:50:53 +02:00
parent 53e19e3dfa
commit 7d08ea4c09
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ func newPassword(cmd *cobra.Command, args []string) error {
return err
}
info, err := GetKeyManager().Create(name, pass, algo)
info, _, err := GetKeyManager().Create(name, pass, algo)
if err == nil {
printInfo(info)
}
+5
View File
@@ -48,10 +48,15 @@ func GetKeyManager() keys.Manager {
// store the keys directory
rootDir := viper.GetString(cli.HomeFlag)
keyDir := filepath.Join(rootDir, KeySubdir)
// TODO: smarter loading??? with language and fallback?
codec := keys.MustLoadCodec("english")
// and construct the key manager
manager = cryptostore.New(
cryptostore.SecretBox,
filestorage.New(keyDir),
codec,
)
}
return manager