omitempty
This commit is contained in:
parent
86da86684b
commit
9a9db972a7
@ -23,7 +23,6 @@ type Config struct {
|
|||||||
Apps []AppConfig `json:"apps"`
|
Apps []AppConfig `json:"apps"`
|
||||||
Timezone string `json:"timezone"`
|
Timezone string `json:"timezone"`
|
||||||
Admin *AdminConfig `json:"admin"`
|
Admin *AdminConfig `json:"admin"`
|
||||||
Debug bool `json:"debug"`
|
|
||||||
box map[string]*Box `json:"-"`
|
box map[string]*Box `json:"-"`
|
||||||
apps map[string]*App `json:"-"`
|
apps map[string]*App `json:"-"`
|
||||||
timezone *time.Location `json:"-"`
|
timezone *time.Location `json:"-"`
|
||||||
@ -48,9 +47,9 @@ type AppConfig struct {
|
|||||||
Schedule []string `json:"schedule"`
|
Schedule []string `json:"schedule"`
|
||||||
Sources []string `json:"src"`
|
Sources []string `json:"src"`
|
||||||
Destinations []string `json:"dest"`
|
Destinations []string `json:"dest"`
|
||||||
Before map[string]string `json:"before"`
|
Before map[string]string `json:"before,omitempty"`
|
||||||
After map[string]string `json:"after"`
|
After map[string]string `json:"after,omitempty"`
|
||||||
Active bool `json:"active"`
|
Active bool `json:"active,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// Load config from file
|
// Load config from file
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// Code generated by version.sh (@generated) DO NOT EDIT.
|
// Code generated by version.sh (@generated) DO NOT EDIT.
|
||||||
package main
|
package main
|
||||||
var githash = "6fcf8b4"
|
var githash = "86da866"
|
||||||
var branch = "master"
|
var branch = "master"
|
||||||
var buildstamp = "2024-11-17_15:41:40"
|
var buildstamp = "2024-11-17_15:49:40"
|
||||||
var commits = "92"
|
var commits = "93"
|
||||||
var version = "6fcf8b4-b92 - 2024-11-17_15:41:40"
|
var version = "86da866-b93 - 2024-11-17_15:49:40"
|
||||||
|
Loading…
Reference in New Issue
Block a user