Console helper utilities for scanning input files and updating the data corpus.
More...
|
| static void | UpdateCorpusWithVehicleType (IAnsiConsole console, CorpusProcessor corpus, string[] inputs) |
| | Scans input paths, adds files to the CorpusProcessor, and prints status messages.
|
| static IEnumerable< string > | ScanFiles (string[] inputs, IAnsiConsole? console) |
| | Enumerates files that match the provided input paths and glob patterns.
|
| static int | ExtractComponents (IAnsiConsole console, object vehicle, string outputDirectory, bool outputXml, bool outputJson) |
| | Extracts components from a vehicle object into the specified directory.
|
Console helper utilities for scanning input files and updating the data corpus.
◆ ExtractComponents()
| int VectoInputManager.Commands.ConsoleCommon.ExtractComponents |
( |
IAnsiConsole | console, |
|
|
object | vehicle, |
|
|
string | outputDirectory, |
|
|
bool | outputXml, |
|
|
bool | outputJson ) |
|
inlinestatic |
Extracts components from a vehicle object into the specified directory.
- Parameters
-
| console | The console for user output. |
| vehicle | The vehicle object to extract components from. |
| outputDirectory | The directory to write extracted files to. |
| outputXml | Whether to output XML files. |
| outputJson | Whether to output JSON files. |
- Returns
- 0 on success, -1 on failure.
◆ ScanFiles()
| IEnumerable< string > VectoInputManager.Commands.ConsoleCommon.ScanFiles |
( |
string[] | inputs, |
|
|
IAnsiConsole? | console ) |
|
inlinestatic |
Enumerates files that match the provided input paths and glob patterns.
- Parameters
-
| inputs | Input paths or glob patterns. |
- Returns
- All matching files as full paths.
◆ UpdateCorpusWithVehicleType()
| void VectoInputManager.Commands.ConsoleCommon.UpdateCorpusWithVehicleType |
( |
IAnsiConsole | console, |
|
|
CorpusProcessor | corpus, |
|
|
string[] | inputs ) |
|
inlinestatic |
Scans input paths, adds files to the CorpusProcessor, and prints status messages.
- Parameters
-
| console | The console to write messages to. |
| corpus | The corpus to update. |
| inputs | Input paths or glob patterns to scan. |
The documentation for this class was generated from the following file:
- VectoInputManager/Internals/ConsoleCommon.cs