Beispiel #1
0
        private static void Switch(string[] args)
        {
            switch (args[0].ToLower())
            {
            case "bind":
                Binder.Bind(GetArgs <BindOptions>(args));
                break;

            case "convert":
                ProfileConverter.WriteProfiles(GetArgs <CommandLineOptions>(args));
                break;

            case "bake":
                ProfileBakery.Bake(GetArgs <BakeryOptions>(args));
                break;

            case "clean":
                Directory.GetFiles(args[1], "*.gen.cs", SearchOption.AllDirectories).ForEach(File.Delete);
                break;

            default:
                PipelineFile(args);
                break;
            }
        }
Beispiel #2
0
        private static void Switch(string[] args)
        {
            switch (args[0].ToLower())
            {
            case "bind":
                Binder.Bind(GetArgs <BindOptions>(args));
                break;

            case "convert":
                ProfileConverter.WriteProfiles(GetArgs <CommandLineOptions>(args));
                break;

            case "bake":
                ProfileBakery.Bake(GetArgs <BakeryOptions>(args));
                break;

            default:
                PipelineFile(args);
                break;
            }
        }