mirror of
https://github.com/mitchell/selfpass.git
synced 2025-12-14 13:27:21 +00:00
Separate cli into its own module; rename it to sp
This commit is contained in:
parent
0e071f0f89
commit
024017338e
25 changed files with 405 additions and 392 deletions
13
sp/types/types.go
Normal file
13
sp/types/types.go
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue