mirror of
https://github.com/go-task/task.git
synced 2025-05-13 22:16:31 +02:00
rename const
This commit is contained in:
parent
c8ff248999
commit
c8a3ecc7fa
@ -102,7 +102,7 @@ func init() {
|
||||
reader := taskrc.NewReader()
|
||||
config, _ := reader.Read(node)
|
||||
|
||||
expiry := getDurationValue(config.Remote.Expiry, "REMOTE_EXPIRY", 0)
|
||||
expiry := getDurationValue(config.Remote.CacheExpiry, "REMOTE_CACHE_EXPIRY", 0)
|
||||
experiments.ParseWithConfig(dir, config)
|
||||
|
||||
// Parse the rest of the flags
|
||||
|
@ -12,5 +12,5 @@ type TaskRC struct {
|
||||
}
|
||||
|
||||
type remote struct {
|
||||
Expiry *time.Duration `yaml:"expiry"`
|
||||
CacheExpiry *time.Duration `yaml:"cache-expiry"`
|
||||
}
|
||||
|
@ -9,7 +9,8 @@
|
||||
"additionalProperties": {
|
||||
"type": "integer"
|
||||
}
|
||||
}, "remote": {
|
||||
},
|
||||
"remote": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"cache-expiry": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user