23 lines · 776 B · Swift
RawDownload
import CodexBarCoreimport Foundation extension SettingsStore {    var sub2APIAPIKey: String {        get { self.configSnapshot.providerConfig(for: .sub2api)?.sanitizedAPIKey ?? "" }        set {            self.updateProviderConfig(provider: .sub2api) { entry in                entry.apiKey = self.normalizedConfigValue(newValue)            }            self.logSecretUpdate(provider: .sub2api, field: "apiKey", value: newValue)        }    }     var sub2APIBaseURL: String {        get { self.configSnapshot.providerConfig(for: .sub2api)?.sanitizedEnterpriseHost ?? "" }        set {            self.updateProviderConfig(provider: .sub2api) { entry in                entry.enterpriseHost = self.normalizedConfigValue(newValue)            }        }    }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t