Add 'ParseString' to the utils. Refactor enums of the 'ConfigFile'.

This commit is contained in:
2025-08-30 00:45:10 +04:00
parent 29b85d5b83
commit 438e655311
6 changed files with 646 additions and 56 deletions

View File

@@ -187,7 +187,7 @@ func (parser *ConfigCLIParser) Parse() (*Config, error) {
fieldParseErrors,
*types.NewFieldParseError(
"config-file",
fmt.Errorf("file type '%s' not supported (supported types: %s)", err.Type, types.ConfigFileTypeYAML.String()),
fmt.Errorf("file type '%s' not supported (supported types: %s)", err.Type, types.ConfigFileTypeYAML),
),
)
return nil