Skip to content

Commit f0f9731

Browse files
committed
fix: builtin help
1 parent 1d3f770 commit f0f9731

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,14 @@ Options:
101101
log the output(stdout/stderr) of notify command
102102
-notify-container container-ID
103103
container to send a signal to
104+
-notify-filter key=value
105+
container filter for notification (e.g -notify-filter name=foo).
106+
You can have multiple of these.
107+
https://docs.docker.com/engine/reference/commandline/ps/#filter
104108
-notify-signal signal
105-
signal to send to the -notify-container. -1 to call docker restart. Defaults to 1 aka. HUP.
106-
All available signals available on the [dockerclient](https://github.com/fsouza/go-dockerclient/blob/01804dec8a84d0a77e63611f2b62d33e9bb2b64a/signal.go)
109+
signal to send to the -notify-container and -notify-filter. -1 to call docker restart. Defaults to 1 aka. HUP.
110+
All available signals available on the dockerclient
111+
https://github.com/fsouza/go-dockerclient/blob/01804dec8a84d0a77e63611f2b62d33e9bb2b64a/signal.go
107112
-notify-sighup container-ID
108113
send HUP signal to container. Equivalent to 'docker kill -s HUP container-ID', or `-notify-container container-ID -notify-signal 1`
109114
-only-exposed

cmd/docker-gen/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ func initFlags() {
115115
"send HUP signal to container. Equivalent to docker kill -s HUP `container-ID`")
116116
flag.StringVar(&notifyContainerID, "notify-container", "",
117117
"container to send a signal to")
118-
flag.IntVar(&notifyContainerSignal, "notify-signal", int(docker.SIGHUP),
119-
"signal to send to the notify-container. Defaults to SIGHUP")
120118
flag.Var(&notifyContainerFilter, "notify-filter",
121119
"container filter for notification (e.g -notify-filter name=foo). You can have multiple of these. https://docs.docker.com/engine/reference/commandline/ps/#filter")
120+
flag.IntVar(&notifyContainerSignal, "notify-signal", int(docker.SIGHUP),
121+
"signal to send to the notify-container and notify-filter. Defaults to SIGHUP")
122122
flag.Var(&configFiles, "config", "config files with template directives. Config files will be merged if this option is specified multiple times.")
123123
flag.IntVar(&interval, "interval", 0, "notify command interval (secs)")
124124
flag.BoolVar(&keepBlankLines, "keep-blank-lines", false, "keep blank lines in the output file")

0 commit comments

Comments
 (0)