changed path
This commit is contained in:
parent
efbc7619f1
commit
62be691fea
@ -5,7 +5,7 @@ import (
|
|||||||
|
|
||||||
"github.com/melbahja/goph"
|
"github.com/melbahja/goph"
|
||||||
|
|
||||||
"git.andrewnw.xyz/CyberShell/backy/cmd/logging"
|
"git.andrewnw.xyz/CyberShell/backy/pkg/logging"
|
||||||
"github.com/spf13/viper"
|
"github.com/spf13/viper"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -38,8 +38,8 @@ type BackupConfig struct {
|
|||||||
|
|
||||||
Cmds Commands
|
Cmds Commands
|
||||||
|
|
||||||
dstDir string
|
DstDir string
|
||||||
srcDir string
|
SrcDir string
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadConfig(backup string, config viper.Viper) (*viper.Viper, error) {
|
func ReadConfig(backup string, config viper.Viper) (*viper.Viper, error) {
|
||||||
@ -64,8 +64,8 @@ func CreateConfig(backup BackupConfig) BackupConfig {
|
|||||||
Name: backup.Name,
|
Name: backup.Name,
|
||||||
BackupType: backup.BackupType,
|
BackupType: backup.BackupType,
|
||||||
|
|
||||||
dstDir: backup.dstDir,
|
DstDir: backup.DstDir,
|
||||||
srcDir: backup.srcDir,
|
SrcDir: backup.SrcDir,
|
||||||
|
|
||||||
ConfigPath: backup.ConfigPath,
|
ConfigPath: backup.ConfigPath,
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user