Skip to content

STRUCT

SourceFilesList

Contents

swift
public struct SourceFilesList: Codable, Equatable, Sendable

A collection of source file globs.

Properties

globs

swift
public var globs: [SourceFileGlob]

List glob patterns.

Methods

sourceFilesList(globs:)

swift
public static func sourceFilesList(globs: [SourceFileGlob]) -> Self

Creates the source files list with the glob patterns.

  • Parameter globs: Glob patterns.

Parameters

NameDescription
globsGlob patterns.

sourceFilesList(globs:)

swift
public static func sourceFilesList(globs: [String]) -> Self

Creates the source files list with the glob patterns as strings.

  • Parameter globs: Glob patterns.

Parameters

NameDescription
globsGlob patterns.

paths(_:)

swift
public static func paths(_ paths: [Path]) -> SourceFilesList

Returns a sources list from a list of paths.

  • Parameter paths: Source paths.

Parameters

NameDescription
pathsSource paths.

Released under the MIT License.