-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update In-Source Documentation #2715
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
0dc8e03
bc70b4d
96bc77f
8bca706
20fa8d6
186660e
9b659d0
b0ac504
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,7 +10,7 @@ | |
|
||
extension Package.Dependency { | ||
|
||
/// Create a package dependency that uses the version requirement, starting with the given minimum version, | ||
/// Adds a package dependency that uses the version requirement, starting with the given minimum version, | ||
/// going up to the next major version. | ||
/// | ||
/// This is the recommended way to specify a remote package dependency. | ||
|
@@ -20,7 +20,7 @@ extension Package.Dependency { | |
/// while making sure you don't update to a version with breaking changes, | ||
/// and helps to prevent conflicts in your dependency graph. | ||
/// | ||
/// The following example allows the Swift package manager to select a version | ||
/// The following example allows the Swift Package Manager to select a version | ||
/// like a `1.2.3`, `1.2.4`, or `1.3.0`, but not `2.0.0`. | ||
/// | ||
/// .package(url: "https://example.com/example-package.git", from: "1.2.3"), | ||
|
@@ -37,7 +37,7 @@ extension Package.Dependency { | |
return .init(name: nil, url: url, requirement: .upToNextMajor(from: version)) | ||
} | ||
|
||
/// Create a package dependency that uses the version requirement, starting with the given minimum version, | ||
/// Adds a package dependency that uses the version requirement, starting with the given minimum version, | ||
/// going up to the next major version. | ||
/// | ||
/// This is the recommended way to specify a remote package dependency. | ||
|
@@ -47,7 +47,7 @@ extension Package.Dependency { | |
/// while making sure you don't update to a version with breaking changes, | ||
/// and helps to prevent conflicts in your dependency graph. | ||
/// | ||
/// The following example allows the Swift package manager to select a version | ||
/// The following example allows the Swift Package Manager to select a version | ||
/// like a `1.2.3`, `1.2.4`, or `1.3.0`, but not `2.0.0`. | ||
/// | ||
/// .package(url: "https://example.com/example-package.git", from: "1.2.3"), | ||
|
@@ -65,7 +65,7 @@ extension Package.Dependency { | |
return .init(name: name, url: url, requirement: .upToNextMajor(from: version)) | ||
} | ||
|
||
/// Add a remote package dependency given a version requirement. | ||
/// Adds a remote package dependency given a version requirement. | ||
/// | ||
/// - Parameters: | ||
/// - name: The name of the package, or nil to deduce it from the URL. | ||
|
@@ -80,10 +80,10 @@ extension Package.Dependency { | |
return .init(name: nil, url: url, requirement: requirement) | ||
} | ||
|
||
/// Add a remote package dependency given a version requirement. | ||
/// Adds a remote package dependency with a given version requirement. | ||
/// | ||
/// - Parameters: | ||
/// - name: The name of the package, or nil to deduce it from the URL. | ||
/// - name: The name of the package, or `nil` to deduce it from the URL. | ||
/// - url: The valid Git URL of the package. | ||
/// - requirement: A dependency requirement. See static methods on `Package.Dependency.Requirement` for available options. | ||
@available(_PackageDescription, introduced: 5.2) | ||
|
@@ -96,10 +96,10 @@ extension Package.Dependency { | |
return .init(name: name, url: url, requirement: requirement) | ||
} | ||
|
||
/// Add a package dependency starting with a specific minimum version, up to | ||
/// Adds a package dependency starting with a specific minimum version, up to | ||
/// but not including a specified maximum version. | ||
/// | ||
/// The following example allows the Swift package manager to pick | ||
/// The following example allows the Swift Package Manager to pick | ||
/// versions `1.2.3`, `1.2.4`, `1.2.5`, but not `1.2.6`. | ||
/// | ||
/// .package(url: "https://example.com/example-package.git", "1.2.3"..<"1.2.6"), | ||
|
@@ -120,16 +120,16 @@ extension Package.Dependency { | |
#endif | ||
} | ||
|
||
/// Add a package dependency starting with a specific minimum version, up to | ||
/// Adds a package dependency starting with a specific minimum version, up to | ||
/// but not including a specified maximum version. | ||
/// | ||
/// The following example allows the Swift package manager to pick | ||
/// The following example allows the Swift Package Manager to pick | ||
/// versions `1.2.3`, `1.2.4`, `1.2.5`, but not `1.2.6`. | ||
/// | ||
/// .package(url: "https://example.com/example-package.git", "1.2.3"..<"1.2.6"), | ||
/// | ||
/// - Parameters: | ||
/// - name: The name of the package, or nil to deduce it from the URL. | ||
/// - name: The name of the package, or `nil` to deduce it from the URL. | ||
/// - url: The valid Git URL of the package. | ||
/// - range: The custom version range requirement. | ||
@available(_PackageDescription, introduced: 5.2) | ||
|
@@ -145,16 +145,16 @@ extension Package.Dependency { | |
#endif | ||
} | ||
|
||
/// Add a package dependency starting with a specific minimum version, going | ||
/// Adds a package dependency starting with a specific minimum version, going | ||
/// up to and including a specific maximum version. | ||
/// | ||
/// The following example allows the Swift package manager to pick | ||
/// The following example allows the Swift Package Manager to pick | ||
/// versions 1.2.3, 1.2.4, 1.2.5, as well as 1.2.6. | ||
/// | ||
/// .package(url: "https://example.com/example-package.git", "1.2.3"..."1.2.6"), | ||
/// | ||
/// - Parameters: | ||
/// - name: The name of the package, or nil to deduce it from the URL. | ||
/// - name: The name of the package, or `nil` to deduce it from the URL. | ||
/// - url: The valid Git URL of the package. | ||
/// - range: The closed version range requirement. | ||
@available(_PackageDescription, obsoleted: 5.2) | ||
|
@@ -175,16 +175,16 @@ extension Package.Dependency { | |
#endif | ||
} | ||
|
||
/// Add a package dependency starting with a specific minimum version, going | ||
/// Adds a package dependency starting with a specific minimum version, going | ||
/// up to and including a specific maximum version. | ||
/// | ||
/// The following example allows the Swift package manager to pick | ||
/// The following example allows the Swift Package Manager to pick | ||
/// versions 1.2.3, 1.2.4, 1.2.5, as well as 1.2.6. | ||
/// | ||
/// .package(url: "https://example.com/example-package.git", "1.2.3"..."1.2.6"), | ||
/// | ||
/// - Parameters: | ||
/// - name: The name of the package, or nil to deduce it from the URL. | ||
/// - name: The name of the package, or `nil` to deduce it from the URL. | ||
/// - url: The valid Git URL of the package. | ||
/// - range: The closed version range requirement. | ||
@available(_PackageDescription, introduced: 5.2) | ||
|
@@ -207,7 +207,7 @@ extension Package.Dependency { | |
} | ||
|
||
#if !PACKAGE_DESCRIPTION_4 | ||
/// Add a dependency to a local package on the filesystem. | ||
/// Adds a package dependency to a local package on the filesystem. | ||
/// | ||
/// The Swift Package Manager uses the package dependency as-is | ||
ElektrojungeAtWork marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/// and does not perform any source control access. Local package dependencies | ||
|
@@ -222,14 +222,16 @@ extension Package.Dependency { | |
return .init(name: nil, url: path, requirement: ._localPackageItem) | ||
} | ||
|
||
/// Add a dependency to a local package on the filesystem. | ||
/// Adds a package dependency to a local package on the filesystem. | ||
/// | ||
/// The Swift Package Manager uses the package dependency as-is | ||
ElektrojungeAtWork marked this conversation as resolved.
Show resolved
Hide resolved
|
||
/// and does not perform any source control access. Local package dependencies | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. just curious: why prefer one over the other? 🤔 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using contractions follows the Apple style guide.
|
||
/// and doesn't perform any source control access. Local package dependencies | ||
/// are especially useful during development of a new package or when working | ||
/// on multiple tightly coupled packages. | ||
/// | ||
/// - Parameter path: The path of the package. | ||
/// - Parameters | ||
/// - name: The name of the Swift package or `nil` to deduce the name from path. | ||
/// - path: The local path to the package. | ||
@available(_PackageDescription, introduced: 5.2) | ||
public static func package( | ||
name: String? = nil, | ||
|
Uh oh!
There was an error while loading. Please reload this page.