Models API Reference
Data models and configuration classes.
Configuration settings for Burner CLI. Persisted to ~/.burner/config.json.
Properties
BurnerHome
Gets or sets the directory where burner projects are stored. Default: ~/.burner/projects
BurnerTemplates
Gets or sets the directory where project templates are stored. Default: ~/.burner/templates
AutoCleanDays
Gets or sets the number of days after which projects are eligible for auto-cleanup. Set to 0 to disable auto-cleanup. Default: 30
Editor
Gets or sets the editor command to use when opening projects (e.g., "code", "cursor", "rider"). Default: "code" (VS Code)
Methods
Load()
Loads the configuration from disk, or creates a default configuration if none exists. Returns: The loaded or default configuration.
Save()
Saves the current configuration to disk.
GetConfigPath()
Gets the path to the configuration file. Returns: The full path to the config.json file.
Represents a burner project with its metadata.
Properties
Name
Gets or sets the project name (includes date prefix in YYMMDD-name format).
Path
Gets or sets the full file system path to the project directory.
CreatedAt
Gets or sets the date and time when the project was created.
Template
Gets or sets the template used to create this project (e.g., "dotnet", "web", "custom").
AgeInDays
Gets the age of the project in days since creation.
Methods
FromDirectory(String path)
Creates a BurnerProject instance from a directory path. Returns: A BurnerProject instance, or null if the directory doesn't exist.