Merge pull request #123 from cupcakearmy/1.4.1

allow all values from envs
This commit is contained in:
Nicco 2021-10-31 22:47:33 +01:00 committed by GitHub
commit 7f9251f06b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 7 deletions

View File

@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [1.4.1] - 2021-10-31
### Fixes
- Numeric values from config files not being passed to env.
## [1.4.0] - 2021-10-30
### Added

View File

@ -16,7 +16,7 @@ import (
"github.com/spf13/viper"
)
const VERSION = "1.4.0"
const VERSION = "1.4.1"
var CI bool = false
var VERBOSE bool = false
@ -253,12 +253,7 @@ func appendOptionsToSlice(str *[]string, options OptionMap) {
*str = append(*str, optionToString(key))
continue
}
// String
asString, ok := value.(string)
if ok {
*str = append(*str, optionToString(key), asString)
continue
}
*str = append(*str, optionToString(key), fmt.Sprint(value))
}
}
}