예제 #1
0
 public void DOWNLOAD_REDISTS()
 {
     foreach (string redist in UDHT.REDIST)
     {
         GITHUB.DOWNLOAD_REDIST(redist);
     }
 }
예제 #2
0
파일: Program.cs 프로젝트: lmnyx/udht
        private static void PROCUDE_SCHEDULETASK(ScheduleTaskUDHT t)
        {
            switch (t.type)
            {
            case "DOWNLOAD_REDISTS":
                foreach (string redist in UDHT.REDIST)
                {
                    GITHUB.DOWNLOAD_REDIST(redist);
                }
                break;

            case "WRONG_ARGUMENT":
                write(false, "You applied unknown argument: ", ConsoleColor.Red);
                write(true, t.argument, ConsoleColor.DarkRed);
                break;

            default:
                if (UDHT.DEBUG_BUILD)
                {
                    write(true, "Invalid task provided. Skipping... (" + t.type + "/" + t.argument + ")", ConsoleColor.Yellow);
                }
                else
                {
                    write(true, "Invalid task provided. Skipping...", ConsoleColor.Yellow);
                }
                break;
            }
        }