Static Methodswift-package-manager 6.0.1PackagePlugin
progress(_:)
Emits a progress message
static func progress(_ message: String)
Emits a progress message
static func progress(_ message: String)
import PackagePlugin
struct Diagnostics
Emits errors, warnings, and remarks to be shown as a result of running the plugin. After emitting one or more errors, the plugin should return a non-zero exit code.
@frozen struct String
A Unicode string value that is a collection of characters.
static func emit(_ severity: Severity, _ description: String, file: String? = #file, line: Int? = #line)
Emits an error with a specified severity and message, and optional file path and line number.
static func error(_ message: String, file: String? = #file, line: Int? = #line)
Emits an error with the specified message, and optional file path and line number.
static func remark(_ message: String, file: String? = #file, line: Int? = #line)
Emits a remark with the specified message, and optional file path and line number.
static func warning(_ message: String, file: String? = #file, line: Int? = #line)
Emits a warning with the specified message, and optional file path and line number.
enum Severity
Severity of the diagnostic.