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

Function checkAdminServerUpdateSyntax

cmd/admin-update.go:112–116  ·  view source on GitHub ↗

checkAdminServerUpdateSyntax - validate all the passed arguments

(ctx *cli.Context)

Source from the content-addressed store, hash-verified

110
111// checkAdminServerUpdateSyntax - validate all the passed arguments
112func checkAdminServerUpdateSyntax(ctx *cli.Context) {
113 if len(ctx.Args()) == 0 || len(ctx.Args()) > 2 {
114 showCommandHelpAndExit(ctx, 1) // last argument is exit code
115 }
116}
117
118func mainAdminServerUpdate(ctx *cli.Context) error {
119 // Validate serivce update syntax.

Callers 1

mainAdminServerUpdateFunction · 0.85

Calls 1

showCommandHelpAndExitFunction · 0.85

Tested by

no test coverage detected