InitPackage
Create an initial template package.
final class InitPackageCreate an initial template package.
final class InitPackageimport Workspaceinit(name: String, options: InitPackage.InitPackageOptions, destinationPath: AbsolutePath, installedSwiftPMConfiguration: InstalledSwiftPMConfiguration, fileSystem: any FileSystem) throws Create an instance that can create a package with given arguments.
convenience init(name: String, packageType: InitPackage.PackageType, supportedTestingLibraries: Set<TestingLibrary>, destinationPath: AbsolutePath, installedSwiftPMConfiguration: InstalledSwiftPMConfiguration, fileSystem: any FileSystem) throws Create an instance that can create a package with given arguments.
static let newPackageToolsVersion: ToolsVersionThe tool version to be used for new packages.
var progressReporter: ((String) -> Void)?A block that will be called to report progress during package creation
func writePackageStructure() throws Actually creates the new package at the destinationPath
struct InitPackageOptionsOptions for the template package.
enum PackageTypeRepresents a package type for the purposes of initialization.