Skip to content

Structure

ActionContext

Shared context passed to every action during execution.

struct ActionContext

Overview

Provides access to the shell execution environment, logger, resolved configuration, App Store Connect client, and (for Android) Google Play client.

Usage

struct MyAction: Action {
    func run(with options: Options, context: ActionContext) async throws -> Result {
        let output = try await GitCLI(context: context.shell).statusPorcelain().run()
        context.logger.info("Git status: \(output.stdout)")
        return Result()
    }
}

Topics

Instance Properties

Instance Methods

Relationships

Conforms To

  • Swift.Sendable
  • Swift.SendableMetatype