GenConfig class

Configuration for the gen command

Constructors

GenConfig({required String sourceDir, String outputPrefix = 'CLAUDIO', int targetSizeKB = 1000, bool removeComments = true, String projectTypeName = 'auto', List<String> extensions = const [], List<String> ignorePatterns = const [], List<String> ignoreFiles = const [], List<String> extraRootFiles = const [], String outputFormatName = 'text', bool verbose = false})
const
GenConfig.fromYaml(Map yaml)
Create config from YAML map
factory
GenConfig.withDefaults([String? workingDir])
Create config with sensible defaults
factory

Properties

effectiveExtensions List<String>
Get effective file extensions (custom or from language config)
no setter
effectiveIgnorePatterns List<String>
Get effective ignore patterns (merged with language defaults)
no setter
extensions List<String>
Custom file extensions to include (overrides language defaults)
final
extraRootFiles List<String>
Extra root files to include in output
final
hashCode int
The hash code for this object.
no setterinherited
ignoreFiles List<String>
Specific files to ignore
final
ignorePatterns List<String>
Patterns to ignore
final
languageConfig LanguageConfig
Get the language config for this project type
no setter
outputFormat OutputFormat
Get the OutputFormat enum value
no setter
outputFormatName String
Output format name
final
outputPrefix String
Output file prefix
final
projectType ProjectType
Get the ProjectType enum value
no setter
projectTypeName String
Project type (for language-specific handling)
final
removeComments bool
Whether to remove comments from output
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceDir String
Source directory to scan
final
targetSizeKB int
Maximum size per output file in KB
final
verbose bool
Enable verbose output
final

Methods

copyWith({String? sourceDir, String? outputPrefix, int? targetSizeKB, bool? removeComments, String? projectTypeName, List<String>? extensions, List<String>? ignorePatterns, List<String>? ignoreFiles, List<String>? extraRootFiles, String? outputFormatName, bool? verbose}) GenConfig
Create a copy with modified values
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
saveToFile(String path) Future<void>
Save config to YAML file
toString() String
A string representation of this object.
override
toYaml() String
Convert to YAML string

Operators

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

Static Properties

profilesDir String
Get the profiles directory path
no setter

Static Methods

loadFromFile(String path) Future<GenConfig?>
Load config from YAML file