Table of Contents

Class BuildStep

Namespace
Ando.Steps
Assembly
ando.dll

Represents a single executable step in the build workflow. Steps are registered during script execution and run by WorkflowRunner.

public class BuildStep
Inheritance
BuildStep
Inherited Members

Constructors

BuildStep(string, Func<Task<bool>>, string?)

Represents a single executable step in the build workflow. Steps are registered during script execution and run by WorkflowRunner.

public BuildStep(string Name, Func<Task<bool>> Execute, string? Context = null)

Parameters

Name string

Step type name (e.g., "Dotnet.Build", "Npm.Install").

Execute Func<Task<bool>>

Async function that executes the step and returns success/failure.

Context string

Additional context (e.g., project name) shown in logs.

Properties

Context

Additional context (e.g., project name) shown in logs.

public string? Context { get; }

Property Value

string

DisplayName

Human-readable name for logging. Format: "Name" or "Name (Context)" if context is present.

public string DisplayName { get; }

Property Value

string

Execute

Async function that executes the step and returns success/failure.

public Func<Task<bool>> Execute { get; }

Property Value

Func<Task<bool>>

IsLogStep

Whether this is a log step that renders as a single line.

public bool IsLogStep { get; init; }

Property Value

bool

LogLevel

Log level for log steps (Info, Warning, Error, Debug).

public LogStepLevel LogLevel { get; init; }

Property Value

LogStepLevel

LogMessage

Message for log steps.

public string? LogMessage { get; init; }

Property Value

string

Name

Step type name (e.g., "Dotnet.Build", "Npm.Install").

public string Name { get; }

Property Value

string