mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-13 21:07:22 +00:00
Refactored config management strategy for spc
This commit is contained in:
parent
3d3206ddfe
commit
30e514cb88
10 changed files with 225 additions and 123 deletions
9
cli/types/types.go
Normal file
9
cli/types/types.go
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
package types
|
||||
|
||||
import "github.com/spf13/viper"
|
||||
|
||||
type ConfigRepo interface {
|
||||
OpenConfig() (masterpass string, cfg *viper.Viper, err error)
|
||||
DecryptConfig()
|
||||
SetMasterpass(masterpass string)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue