Browse Source

Fixed all tests and binaries to compile

pull/1782/head
Ethan Frey 7 years ago
parent
commit
7d08ea4c09
2 changed files with 6 additions and 1 deletions
  1. +1
    -1
      cmd/new.go
  2. +5
    -0
      cmd/root.go

+ 1
- 1
cmd/new.go 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
- 0
cmd/root.go 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


Loading…
Cancel
Save