For the notify-mailer, this PR fixes a bug with the -end parameter where the default (99999999) would cause a slice index out of range error. This was fixed by setting the -end value to len(m.destinations) in run when it is too large. For both the notify-mailer and the contact-exporter a bug was fixed that was comparing the required flags against nil when the defaults were set to a non-nil pointer to "". This resulted in confusing errors when the mandatory arguments were not provided. This PR also adds a separated config example for both the notify-mailer and the contact-exporter into test/config and test/config-next respectively. Finally a documentation string was added to describe the overall design & usage of both tools, including example invocations. |
||
|---|---|---|
| .. | ||
| testdata | ||
| main.go | ||
| main_test.go | ||