AddTarget
Add a target to a manifest’s source code.
struct AddTarget
Add a target to a manifest’s source code.
struct AddTarget
import PackageModelSyntax
static func addTarget(_ target: TargetDescription, to manifest: SourceFileSyntax, configuration: Configuration = .init(), installedSwiftPMConfiguration: InstalledSwiftPMConfiguration = .default) throws -> PackageEditResult
Add the given target to the manifest, producing a set of edit results that updates the manifest and adds some source files to stub out the new target.
struct Configuration
Additional configuration information to guide the package editing process.
enum TestHarness
The kind of test harness to use. This isn’t part of the manifest itself, but is used to guide the generation process.