mirror of
https://github.com/containrrr/watchtower.git
synced 2025-12-16 15:10:12 +01:00
require --prefix in docs
This commit is contained in:
parent
1b0eaa45b5
commit
39547fff32
2 changed files with 4 additions and 4 deletions
|
|
@ -20,9 +20,9 @@ system, [logrus](http://github.com/sirupsen/logrus).
|
||||||
- `--notifications-hostname` (env. `WATCHTOWER_NOTIFICATIONS_HOSTNAME`): Custom hostname specified in subject/title. Useful to override the operating system hostname.
|
- `--notifications-hostname` (env. `WATCHTOWER_NOTIFICATIONS_HOSTNAME`): Custom hostname specified in subject/title. Useful to override the operating system hostname.
|
||||||
- `--notifications-delay` (env. `WATCHTOWER_NOTIFICATIONS_DELAY`): Delay before sending notifications expressed in seconds.
|
- `--notifications-delay` (env. `WATCHTOWER_NOTIFICATIONS_DELAY`): Delay before sending notifications expressed in seconds.
|
||||||
- Watchtower will post a notification every time it is started. This behavior [can be changed](https://containrrr.github.io/watchtower/arguments/#without_sending_a_startup_message) with an argument.
|
- Watchtower will post a notification every time it is started. This behavior [can be changed](https://containrrr.github.io/watchtower/arguments/#without_sending_a_startup_message) with an argument.
|
||||||
- `notification-title-tag` (env. `WATCHTOWER_NOTIFICATION_TITLE_TAG`): Prefix to include in the title. Useful when running multiple watchtowers.
|
- `--notification-title-tag` (env. `WATCHTOWER_NOTIFICATION_TITLE_TAG`): Prefix to include in the title. Useful when running multiple watchtowers.
|
||||||
- `notification-skip-title` (env. `WATCHTOWER_NOTIFICATION_SKIP_TITLE`): Do not pass the title param to notifications. This will not pass a dynamic title override to notification services. If no title is configured for the service, it will remove the title all together.
|
- `--notification-skip-title` (env. `WATCHTOWER_NOTIFICATION_SKIP_TITLE`): Do not pass the title param to notifications. This will not pass a dynamic title override to notification services. If no title is configured for the service, it will remove the title all together.
|
||||||
- `notification-log-stdout` (env. `WATCHTOWER_NOTIFICATION_LOG_STDOUT`): Enable output from `logger://` shoutrrr service to stdout.
|
- `--notification-log-stdout` (env. `WATCHTOWER_NOTIFICATION_LOG_STDOUT`): Enable output from `logger://` shoutrrr service to stdout.
|
||||||
|
|
||||||
## [shoutrrr](https://github.com/containrrr/shoutrrr) notifications
|
## [shoutrrr](https://github.com/containrrr/shoutrrr) notifications
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -264,7 +264,7 @@ func TestFlagsArePrecentInDocumentation(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
flags.VisitAll(func(f *pflag.Flag) {
|
flags.VisitAll(func(f *pflag.Flag) {
|
||||||
if !strings.Contains(allDocs, f.Name) {
|
if !strings.Contains(allDocs, "--"+f.Name) {
|
||||||
if _, found := ignoredFlags[f.Name]; !found {
|
if _, found := ignoredFlags[f.Name]; !found {
|
||||||
t.Logf("Docs does not mention flag long name %q", f.Name)
|
t.Logf("Docs does not mention flag long name %q", f.Name)
|
||||||
t.Fail()
|
t.Fail()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue