MCPcopy Index your code
hub / github.com/minio/mc / checkAdminPrometheusSyntax

Function checkAdminPrometheusSyntax

cmd/admin-prometheus-generate.go:178–182  ·  view source on GitHub ↗

checkAdminPrometheusSyntax - validate all the passed arguments

(ctx *cli.Context)

Source from the content-addressed store, hash-verified

176
177// checkAdminPrometheusSyntax - validate all the passed arguments
178func checkAdminPrometheusSyntax(ctx *cli.Context) {
179 if len(ctx.Args()) == 0 || len(ctx.Args()) > 2 {
180 showCommandHelpAndExit(ctx, 1) // last argument is exit code
181 }
182}
183
184func generatePrometheusConfig(ctx *cli.Context) error {
185 // Get the alias parameter from cli

Callers 1

Calls 1

showCommandHelpAndExitFunction · 0.85

Tested by

no test coverage detected