ConfigParser class

A parser for YAML configuration files used in the distribution process.

The ConfigParser class is responsible for parsing YAML configuration files, converting them into structured objects, and providing access to tasks, environments, and arguments defined in the configuration. It handles variable substitution and validates required configuration fields.

Constructors

ConfigParser.new({required List<Task> tasks, required Map<String, JobArguments>? arguments, required Map<String, dynamic> environments, required ArgResults? globalResults, String output = "distribution"})
Creates a new ConfigParser instance.
ConfigParser.fromJson(Map<String, dynamic> json, ArgResults? globalResults)
Creates a ConfigParser instance from a JSON object.
factory

Properties

arguments Map<String, JobArguments>?
The map of job arguments defined in the configuration
final
environments Map<String, dynamic>
The environment variables used in the configuration
getter/setter pair
globalResults → ArgResults?
Global command line argument results from the CLI parser
final
hashCode int
The hash code for this object.
no setterinherited
output String
The output directory for distribution files
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
tasks List<Task>
The list of tasks defined in the configuration
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

distributeYaml(String path, ArgResults? globalResults) Future<ConfigParser>
Creates a ConfigParser instance by parsing a YAML file.