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

Function checkAdminUserRemoveSyntax

cmd/admin-user-remove.go:51–55  ·  view source on GitHub ↗

checkAdminUserRemoveSyntax - validate all the passed arguments

(ctx *cli.Context)

Source from the content-addressed store, hash-verified

49
50// checkAdminUserRemoveSyntax - validate all the passed arguments
51func checkAdminUserRemoveSyntax(ctx *cli.Context) {
52 if len(ctx.Args()) != 2 {
53 showCommandHelpAndExit(ctx, 1) // last argument is exit code
54 }
55}
56
57// mainAdminUserRemove is the handle for "mc admin user remove" command.
58func mainAdminUserRemove(ctx *cli.Context) error {

Callers 1

mainAdminUserRemoveFunction · 0.85

Calls 1

showCommandHelpAndExitFunction · 0.85

Tested by

no test coverage detected