support for global flags

This commit is contained in:
2021-10-28 18:10:14 +02:00
parent fb6217d868
commit 440609220c
3 changed files with 29 additions and 7 deletions

View File

@@ -53,6 +53,9 @@ func ExecuteCommand(options ExecuteOptions, args ...string) (string, error) {
func ExecuteResticCommand(options ExecuteOptions, args ...string) (string, error) {
options.Command = RESTIC_BIN
var c = GetConfig()
var optionsAsString = getOptions(c.Global, "")
args = append(optionsAsString, args...)
return ExecuteCommand(options, args...)
}