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
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
Julien Pivotto
e21cdfbc52
Fix empty isEqual in amtool. ( #2668 )
...
This is the best we can do to make amtool support old releases.
Supersedes #2634
Fix #2666
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-08-06 11:11:16 +02:00
Kiril Vladimirov
217562e838
cli/format: Create labels.Matcher to format
...
There is non-trivial value escaping going inside pkg/labels.
Signed-off-by: Kiril Vladimirov <kiril@vladimiroff.org>
2021-02-18 23:43:15 +02:00
Fahri YARDIMCI
12db463c7f
Add cluster command to show cluster and peer statuses. ( #2256 )
...
Signed-off-by: Fahri Yardımcı <f.yardimci06@gmail.com>
Signed-off-by: Fahri Yardımcı <f.yardimci06@gmail.com>
2020-05-18 15:25:15 +02:00
Paul Gier
ab4784b112
cli: style improvement and fix filter handling
...
Signed-off-by: Paul Gier <pgier@redhat.com>
2019-03-29 09:11:09 -05:00
Paul Gier
74fa2236f7
cli: update amtool to use apiv2
...
Includes godoc improvements
Signed-off-by: Paul Gier <pgier@redhat.com>
2019-03-29 09:11:09 -05:00
Simon Pasquier
0ebaeccd4b
*: add missing license headers
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-05-14 17:37:13 +02:00
Simon Pasquier
dc5fc02d22
[amtool] use kingpin.v2 ( #1330 )
...
* Use default values to store values from config
* fix typo and reserved keywork
* move to long help texts
* add one more unit test for resolver
* update comments
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2018-04-24 09:35:15 +02:00
Simon Pasquier
c92ed69ce8
Split cli package ( #1314 )
...
* cli: move commands to cli/cmd
* cli: use StatusAPI interface for config command
* cli: use SilenceAPI interface for silence commands
* cli: use AlertAPI for alert command
* cli: move back commands to cli package
And move API client code to its own package.
* cli: remove unused structs
2018-04-11 11:17:41 +02:00
Calle Pettersson
608848390f
Switch amtool to kingpin ( #976 )
...
* Switch cmd/amtool to kingpin
* Touch-ups
* Implement long help
* Add missing short-form of --output
* Fix backwards compatibility for config file options
* Fix vendoring
* Review fixes
* Fix flag word order
2017-12-22 11:17:13 +01:00
Julius Volz
9b72c10134
Minor code cleanups
2017-11-01 23:08:34 +01:00
Frederic Branczyk
c4c0875ba3
fix config JSON marshaling
2017-06-08 13:37:57 +02:00
Kellen Fox
3aab66ec3a
Amtool implementation ( #636 )
...
* Implement alertmanager cli tool 'amtool'
The primary goal of an alertmanager tool is to provide a cli interface
for the prometheus alertmanager.
My vision for this tool has two parts:
- Silence management (query, add, delete)
- Alert management (query, maybe more in future?)
Resolves : #567
2017-04-20 11:04:17 +02:00