mirror of
https://github.com/prometheus/alertmanager
synced 2025-02-05 21:21:50 +00:00
dc5fc02d22
* 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>
14 lines
507 B
Go
14 lines
507 B
Go
package cli
|
|
|
|
import "gopkg.in/alecthomas/kingpin.v2"
|
|
|
|
// silenceCmd represents the silence command
|
|
func configureSilenceCmd(app *kingpin.Application) {
|
|
silenceCmd := app.Command("silence", "Add, expire or view silences. For more information and additional flags see query help").PreAction(requireAlertManagerURL)
|
|
configureSilenceAddCmd(silenceCmd)
|
|
configureSilenceExpireCmd(silenceCmd)
|
|
configureSilenceImportCmd(silenceCmd)
|
|
configureSilenceQueryCmd(silenceCmd)
|
|
configureSilenceUpdateCmd(silenceCmd)
|
|
}
|