Instance Methodswift-package-manager 6.0.1Workspace
writePackageStructure
Actually creates the new package at the destinationPath
func writePackageStructure() throws
Actually creates the new package at the destinationPath
func writePackageStructure() throws
import Workspace
final class InitPackage
Create an initial template package.
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.
var progressReporter: ((String) -> Void)?
A block that will be called to report progress during package creation
struct InitPackageOptions
Options for the template package.
enum PackageType
Represents a package type for the purposes of initialization.