Table of Contents

Class ProjectConfig

Namespace
Ando.Config
Assembly
ando.dll

Project-level configuration stored in ando.config file.

public record ProjectConfig : IEquatable<ProjectConfig>
Inheritance
ProjectConfig
Implements
Inherited Members

Fields

FileName

The config file name.

public const string FileName = "ando.config"

Field Value

string

Properties

AllowClaude

Whether to allow Claude CLI to run with --dangerously-skip-permissions. When true, skips the confirmation prompt for AI-powered commands.

[JsonPropertyName("allowClaude")]
public bool AllowClaude { get; init; }

Property Value

bool

ClaudePath

Optional explicit path/command for the Claude CLI. Useful on Windows where npm installs a claude.cmd shim that may not be discoverable from non-interactive PATH contexts.

[JsonPropertyName("claudePath")]
public string? ClaudePath { get; init; }

Property Value

string

Dind

Whether Docker-in-Docker mode is enabled for this project. When true, the Docker socket is mounted into the build container.

[JsonPropertyName("dind")]
public bool Dind { get; init; }

Property Value

bool

ReadEnv

Whether to automatically load environment variables from .env.ando or .env. When true, skips the prompt and loads env vars automatically.

[JsonPropertyName("readEnv")]
public bool ReadEnv { get; init; }

Property Value

bool

Methods

Load(string)

Loads project configuration from the specified directory. Returns default configuration if file doesn't exist or is invalid.

public static ProjectConfig Load(string projectRoot)

Parameters

projectRoot string

The project root directory.

Returns

ProjectConfig

The loaded configuration or defaults.

Save(string)

Saves this configuration to the specified directory. Creates the file if it doesn't exist.

public void Save(string projectRoot)

Parameters

projectRoot string

The project root directory.