Sha256: b16739166bce8f38c4837a82e6fceec1bceb63951710060ae3395237e30728df

Contents?: true

Size: 782 Bytes

Versions: 22

Compression:

Stored size: 782 Bytes

Contents

using CommandLine;
using Serilog;

namespace Generators
{
    public static class Program
    {
        public static void Main(string[] args)
        {
            SetupLogger();

            Parser.Default.ParseArguments<Options>(args)
                .WithParsed(Generate);
        }

        private static void SetupLogger()
        {
            Log.Logger = new LoggerConfiguration()
                .WriteTo.LiterateConsole()
                .CreateLogger();
        }

        private static void Generate(Options options)
        {
            Log.Information("Generating tests...");

            foreach (var exercise in new ExerciseCollection(options.Exercises))
                exercise.Generate();

            Log.Information("Generated tests.");
        }
    }
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
trackler-2.2.1.12 tracks/csharp/generators/Program.cs
trackler-2.2.1.11 tracks/csharp/generators/Program.cs
trackler-2.2.1.10 tracks/csharp/generators/Program.cs
trackler-2.2.1.9 tracks/csharp/generators/Program.cs
trackler-2.2.1.8 tracks/csharp/generators/Program.cs
trackler-2.2.1.7 tracks/csharp/generators/Program.cs
trackler-2.2.1.6 tracks/csharp/generators/Program.cs
trackler-2.2.1.5 tracks/csharp/generators/Program.cs
trackler-2.2.1.4 tracks/csharp/generators/Program.cs
trackler-2.2.1.3 tracks/csharp/generators/Program.cs
trackler-2.2.1.2 tracks/csharp/generators/Program.cs
trackler-2.2.1.1 tracks/csharp/generators/Program.cs
trackler-2.2.1.0 tracks/csharp/generators/Program.cs
trackler-2.2.0.6 tracks/csharp/generators/Program.cs
trackler-2.2.0.5 tracks/csharp/generators/Program.cs
trackler-2.2.0.4 tracks/csharp/generators/Program.cs
trackler-2.2.0.3 tracks/csharp/generators/Program.cs
trackler-2.2.0.2 tracks/csharp/generators/Program.cs
trackler-2.2.0.1 tracks/csharp/generators/Program.cs
trackler-2.2.0.0 tracks/csharp/generators/Program.cs