chore: import upstream snapshot with attribution
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import Foundation
|
||||
|
||||
public enum CodexUsageDataSource: String, CaseIterable, Identifiable, Sendable {
|
||||
case auto
|
||||
case oauth
|
||||
case cli
|
||||
|
||||
public var id: String {
|
||||
self.rawValue
|
||||
}
|
||||
|
||||
public var displayName: String {
|
||||
switch self {
|
||||
case .auto: "Auto"
|
||||
case .oauth: "OAuth API"
|
||||
case .cli: "CLI (RPC/PTY)"
|
||||
}
|
||||
}
|
||||
|
||||
public var sourceLabel: String {
|
||||
switch self {
|
||||
case .auto:
|
||||
"auto"
|
||||
case .oauth:
|
||||
"oauth"
|
||||
case .cli:
|
||||
"cli"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user