private static void PrintInfoAboutParameters(ToolOptions options)
 {
     Console.WriteLine("Run with the following options:");
     Console.WriteLine($"{nameof(options.ProjectPath)} -> {options.ProjectPath}");
     Console.WriteLine($"{nameof(options.OutputPath)} -> {options.OutputPath}");
     Console.WriteLine($"{nameof(options.GeneratorPaths)} -> {options.GeneratorPaths}");
 }
Exemple #2
0
 public static IReadOnlyList <string> GetGeneratorPluginsSearchPaths(this ToolOptions options, ProgressReporter progressReporter)
 {
     return(options.GeneratorPaths.Split(";").Where(s =>
     {
         if (File.Exists(s))
         {
             return true;
         }
         progressReporter.ReportInfo($"Cannot find generator plugin file: {s}");
         return false;
     }).Select(Path.GetFullPath).ToList());
 }