MCPcopy Create free account
hub / github.com/Scalingo/cli / isValidAlertAddOpts

Function isValidAlertAddOpts

cmd/alerts.go:294–304  ·  view source on GitHub ↗
(c *cli.Command)

Source from the content-addressed store, hash-verified

292)
293
294func isValidAlertAddOpts(c *cli.Command) bool {
295 if c.Args().Len() > 0 {
296 return false
297 }
298 for _, opt := range []string{"container-type", "metric", "limit"} {
299 if !c.IsSet(opt) {
300 return false
301 }
302 }
303 return true
304}

Callers 1

alerts.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected