run
fun run(path: String, output: String, config: ParserConfig, recursive: Boolean, maxDepth: Int = AppDefaults.MAX_RECURSIVE_DEPTH, mapIconName: IconMapperFn? = null): List<Path>(source)
Starts the processor execution.
This function is the main entry point for the SVG and Android Vector Drawable parser.
It identifies whether the input path provided is a file or a directory.
If it's a directory, it finds all SVG and XML files (not recursive) within and processes each of them.
If it's a file, the system ensures it has a Kotlin file extension and proceeds with the processing.
Any processing errors are captured and logged. Successful completion is also logged.
Return
list of parsed files. or if no files are found at the specified path.
Parameters
path
The input path for the SVG or Android Vector Drawable file(s).
output
The path where the output file(s) should be stored.
config
The configuration parameters for the parser.
Throws
In case of an error while parsing the files,