MCPcopy Index your code
hub / github.com/cloudfoundry/cli / validateFlags

Method validateFlags

command/v7/set_org_role_command.go:74–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

72}
73
74func (cmd SetOrgRoleCommand) validateFlags() error {
75 if cmd.IsClient && cmd.Origin != "" {
76 return translatableerror.ArgumentCombinationError{
77 Args: []string{"--client", "--origin"},
78 }
79 }
80
81 return nil
82}
83
84func convertRoleType(givenRole flag.OrgRole) (constant.RoleType, error) {
85 switch givenRole.Role {

Callers 1

ExecuteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected