Refactored config management strategy for spc

This commit is contained in:
mitchell 2019-06-02 01:47:19 -07:00
parent 3d3206ddfe
commit 30e514cb88
10 changed files with 225 additions and 123 deletions

9
cli/types/types.go Normal file
View 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)
}