Separate cli into its own module; rename it to sp

This commit is contained in:
mitchell 2019-07-11 02:05:59 -04:00
parent 0e071f0f89
commit 024017338e
25 changed files with 405 additions and 392 deletions

13
sp/types/types.go Normal file
View file

@ -0,0 +1,13 @@
package types
import "github.com/spf13/viper"
type ConfigRepo interface {
OpenConfig() (masterpass string, cfg *viper.Viper, err error)
DecryptConfig() (err error)
SetMasterpass(masterpass string)
WriteConfig() (err error)
}
const KeyPrivateKey = "private_key"
const KeyConnConfig = "connection"