Manuel Rüger
f2f411094e
Update gopkg.in/alecthomas/kingpin.v2 to github.com/alecthomas/kingpin/v2
...
Upstream changed package name, see:
https://github.com/alecthomas/kingpin#overview
Signed-off-by: Manuel Rüger <manuel@rueg.eu>
2023-03-08 15:02:24 +01:00
Martin Chodur
26cbd6bd86
feat: add template.FromGlobsWithAdditionalFuncs ( #3174 )
...
* refactor: add Options to the template.FromGlob function to allow customizing the Template
Signed-off-by: Martin Chodur <m.chodur@seznam.cz>
2022-12-16 10:13:13 -04:00
inosato
791e542100
Remove ioutil
...
Signed-off-by: inosato <si17_21@yahoo.co.jp>
2022-07-18 22:01:02 +09:00
Matthias Loibl
a6d10bd5bc
Update golangci-lint and fix complaints ( #2853 )
...
* Copy latest golangci-lint files from Prometheus
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Use grafana/regexp over stdlib regexp
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Fix typos in comments
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Fix goimports complains in import sorting
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* gofumpt all Go files
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Update naming to comply with revive linter
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* config: Fix error messages to be lower case
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* test/cli: Fix error messages to be lower case
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* .golangci.yaml: Remove obsolete space
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* config: Fix expected victorOps error
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Use stdlib regexp
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
* Clean up Go modules
Signed-off-by: Matthias Loibl <mail@matthiasloibl.com>
2022-03-25 17:59:51 +01:00
Giedrius Statkevičius
3962da4073
cli: add new template render command ( #2538 )
...
* cli: add new template render command
Add a new template rendering command that allows users to test out their
templates. This is especially needed because small bugs in templates do
not surface until alertmanager actually tries to render them.
* cli: permit passing alert data via a file
Add a new parameter `--templatefile` for `amtool` so that it would be
possible to pass custom alert data. Use an example `template.Data` if
none has been passed to permit simple use-cases.
Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
2021-08-04 13:58:33 +02:00