allow options for backend

This commit is contained in:
2021-05-17 22:34:14 +02:00
parent 41736ea3c4
commit 61673bd88b
3 changed files with 26 additions and 22 deletions

View File

@@ -12,7 +12,7 @@ import (
"github.com/spf13/viper"
)
const VERSION = "1.1.0"
const VERSION = "1.1.1"
var CI bool = false
var VERBOSE bool = false
@@ -220,3 +220,13 @@ func (c *Config) SaveConfig() error {
return viper.WriteConfig()
}
func getOptions(options Options, key string) []string {
var selected []string
for k, values := range options[key] {
for _, value := range values {
selected = append(selected, fmt.Sprintf("--%s", k), value)
}
}
return selected
}