File

public struct File : CustomStringConvertible, ExpressibleByStringLiteral
extension File: Hashable

A representation of an environment file.

  • A source of an environment file.

    Declaration

    Swift

    public let source: String
  • An absolute path to an environment file in the file system. Defaults to nil.

    Declaration

    Swift

    public let path: String?
  • See CustomStringConvertible.

    Declaration

    Swift

    public var description: String { get }
  • See ExpressibleByStringLiteral.

    Declaration

    Swift

    public init(stringLiteral source: String)
  • Initializes a new instance with the source and optionally path parameters.

    Declaration

    Swift

    public init(_ source: String, path: String? = nil)

    Parameters

    source

    A source of an environment file.

    path

    An absolute path to an environment file in the file system. Defaults to nil.

  • See Hashable.

    Declaration

    Swift

    public func hash(into hasher: inout Hasher)