Class ProjectConfig
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
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
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
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
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
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
projectRootstringThe 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
projectRootstringThe project root directory.