INNER CODE UNIT · Swift

configurationPath

peripheryapp/periphery · Sources/Configuration/Configuration.swift:246

    private func configurationPath(withUserProvided path: FilePath?) throws -> FilePath? {
        if let path {
            if !path.exists {
                throw PeripheryError.pathDoesNotExist(path: path.lexicallyNormalized().string)
            }

            return path
        }

        return [Self.defaultConfigurationFile, FilePath(".periphery.yaml")].first { $0.exists }
    }
}

protocol AbstractSetting {
    associatedtype Value

    var key: String { get }
    var hasNonDefaultValue: Bool { get }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…