Instance Propertyswift-package-manager 6.0.1Workspace
progressReporter
A block that will be called to report progress during package creation
var progressReporter: ((String) -> Void)?
A block that will be called to report progress during package creation
var progressReporter: ((String) -> Void)?
import Workspace
final class InitPackage
Create an initial template package.
@frozen struct String
A Unicode string value that is a collection of characters.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
init(name: String, options: InitPackageOptions, destinationPath: AbsolutePath, installedSwiftPMConfiguration: InstalledSwiftPMConfiguration, fileSystem: FileSystem) throws
Create an instance that can create a package with given arguments.
convenience init(name: String, packageType: PackageType, supportedTestingLibraries: Set<BuildParameters.Testing.Library>, destinationPath: AbsolutePath, installedSwiftPMConfiguration: InstalledSwiftPMConfiguration, fileSystem: FileSystem) throws
Create an instance that can create a package with given arguments.
static let newPackageToolsVersion: ToolsVersion
The tool version to be used for new packages.
func writePackageStructure() throws
Actually creates the new package at the destinationPath
struct InitPackageOptions
Options for the template package.
enum PackageType
Represents a package type for the purposes of initialization.