import WorkspaceConfiguration .product(name: "WorkspaceConfiguration", package: "Workspace")
Structure

CustomTask

A custom task.

Declaration

struct CustomTask

Overview

A custom task can be any executable vended as a Swift package. Exit code 0 must indicate that the project passes validation or that refreshment was successful. Any other exit code must indicate that the project fails validation or that the task itself failed. Output will be included in the log.

Initialisers

#if !os(WASI)
init(url:version:executable:arguments:)

Creates a custom task.

Properties

arguments

Any arguments for the executable.

executable

The name of the executable for the task.

#if !os(WASI)
url

The URL of the Swift package defining the task.

version

The version of the Swift package defining the task.

Decodable

init(from:)

Encodable

encode(to:)
macOS CentOS Ubuntu Amazon Linux