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

Method validateFlags

command/v7/set_space_role_command.go:84–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

82}
83
84func (cmd SetSpaceRoleCommand) validateFlags() error {
85 if cmd.IsClient && cmd.Origin != "" {
86 return translatableerror.ArgumentCombinationError{
87 Args: []string{"--client", "--origin"},
88 }
89 }
90 return nil
91}
92
93func convertSpaceRoleType(givenRole flag.SpaceRole) (constant.RoleType, error) {
94 switch strings.ToLower(givenRole.Role) {

Callers 1

ExecuteMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected