//
//  EnvironmentRepresentable.swift
//  EnvironmentSwitcher
//
//  Created by Ben Norris on 2/12/16.
//  Copyright © 2016 OC Tanner. All rights reserved.
//

import Foundation

public protocol EnvironmentRepresentable {
    typealias Environment: RawRepresentable
    var currentEnvironment: Environment { get set }
    var allEnvironments: [Environment] { get }
    var customPath: String? { get set }
}

//
//  EnvironmentRepresentable.swift
//  EnvironmentSwitcher
//
//  Created by Ben Norris on 2/12/16.
//  Copyright © 2016 OC Tanner. All rights reserved.
//

import Foundation

public struct Environment {
    public let name: String
    public let path: String?
    public init(name: String, path: String?) {
        self.name = name
        self.path = path
    }
}

public protocol EnvironmentRepresentable {
    var currentEnvironment: Environment { get set }
    var allEnvironments: [Environment] { get }
    var customPath: String? { get set }
}

Change protocol to use struct instead of enum
Change protocol to use struct instead of enum
