func CheckCloudAddFlags(externalID, roleArn, roleName, environment string) error {

	if (externalID == "" || roleArn == "") && roleName == "" {
		return fmt.Errorf("Please either provide both externalID and roleArn or the name of the new role ")
	}

	// Check for environment set
	envSet := map[string]bool{
		"Production":  true,
		"Staging":     true,
		"Development": true,
		"Test":        true,
	}

	if !envSet[environment] && environment != "" {
		return fmt.Errorf("Environment must be one of those: Production, Staging, Development, Test ")
	}
	return nil
}
// CheckCloudAddFlags flag check for cloud add command
CheckCloudAddFlags flag check for cloud add command
// CheckCloudAddFlags flag check for cloud add command
func CheckCloudAddFlags(externalID, roleArn, roleName, environment string) error {
	if (externalID == "" || roleArn == "") && roleName == "" {
		return fmt.Errorf("Please either provide both externalID and roleArn or the name of the new role ")
	}
	envSet := map[string]bool{
		"Production":  true,
		"Staging":     true,
		"Development": true,
		"Test":        true,
	}
	if !envSet[environment] && environment != "" {
		return fmt.Errorf("Environment must be one of those: Production, Staging, Development, Test ")
	}
	return nil
}
func CheckCloudAddFlags ( externalID , roleArn , roleName , environment string ) error { if ( externalID == " " || roleArn == " " ) && roleName == " " { return fmt . Errorf ( " " ) } envSet := map [ string ] bool { " " : true , " " : true , " " : true , " " : true , } if ! envSet [ environment ] && environment != " " { return fmt . Errorf ( " " ) } return nil }
CheckCloudAddFlags flag check for cloud add command
CheckCloudAddFlags flag check for cloud add command
// Check for environment set