|
29 | 29 | configFiles stringslice |
30 | 30 | configs ConfigFile |
31 | 31 | interval int |
32 | | - skipBlankLines bool |
| 32 | + keepBlankLines bool |
33 | 33 | endpoint string |
34 | 34 | tlsCert string |
35 | 35 | tlsKey string |
@@ -115,7 +115,7 @@ type Config struct { |
115 | 115 | OnlyExposed bool |
116 | 116 | OnlyPublished bool |
117 | 117 | Interval int |
118 | | - SkipBlankLines bool |
| 118 | + KeepBlankLines bool |
119 | 119 | } |
120 | 120 |
|
121 | 121 | type ConfigFile struct { |
@@ -393,7 +393,7 @@ func initFlags() { |
393 | 393 | "send HUP signal to container. Equivalent to `docker kill -s HUP container-ID`") |
394 | 394 | flag.Var(&configFiles, "config", "config files with template directives. Config files will be merged if this option is specified multiple times.") |
395 | 395 | flag.IntVar(&interval, "interval", 0, "notify command interval (secs)") |
396 | | - flag.BoolVar(&skipBlankLines, "skip-blank-lines", false, "skip blank lines in output file") |
| 396 | + flag.BoolVar(&keepBlankLines, "keep-blank-lines", false, "keep blank lines in the output file") |
397 | 397 | flag.StringVar(&endpoint, "endpoint", "", "docker api endpoint (tcp|unix://..). Default unix:///var/run/docker.sock") |
398 | 398 | flag.StringVar(&tlsCert, "tlscert", filepath.Join(certPath, "cert.pem"), "path to TLS client certificate file") |
399 | 399 | flag.StringVar(&tlsKey, "tlskey", filepath.Join(certPath, "key.pem"), "path to TLS client key file") |
@@ -434,7 +434,7 @@ func main() { |
434 | 434 | OnlyExposed: onlyExposed, |
435 | 435 | OnlyPublished: onlyPublished, |
436 | 436 | Interval: interval, |
437 | | - SkipBlankLines: skipBlankLines, |
| 437 | + KeepBlankLines: keepBlankLines, |
438 | 438 | } |
439 | 439 | if notifySigHUPContainerID != "" { |
440 | 440 | config.NotifyContainers[notifySigHUPContainerID] = docker.SIGHUP |
|
0 commit comments