Skip to content

Structure

JSONReporter

Encodes ActionResultEnvelope values to JSON strings for CLI output.

struct JSONReporter

Overview

Used by CLI commands when --output json is specified to produce machine-readable output suitable for CI systems.

Usage

let reporter = JSONReporter()
let envelope = ActionResultEnvelope(action: "build", status: "success", payload: nil)
let json = try reporter.encode(envelope)
print(json)

Topics

Initializers

Instance Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype