use ssh stdlib

This commit is contained in:
2022-12-26 23:20:11 -06:00
parent ab12b02dc9
commit 2daae5cf9e
4 changed files with 153 additions and 90 deletions

View File

@@ -5,10 +5,6 @@ import (
"github.com/spf13/viper"
)
type BackyViperOpts struct {
ConfigFilePath string
}
func ReadConfig(Config *viper.Viper) (*viper.Viper, error) {
backyViper := viper.New()
@@ -82,9 +78,6 @@ func CreateConfig(backup backy.BackupConfig) backy.BackupConfig {
Name: backup.Name,
BackupType: backup.BackupType,
DstDir: backup.DstDir,
SrcDir: backup.SrcDir,
ConfigPath: backup.ConfigPath,
}