예제 #1
0
        static void Main(string[] args)
        {
            try
            {
                switch (args[0])
                {
                case "install":
                    InstallArgs    installArgs    = new InstallArgs(args);
                    InstallProcess installProcess = new InstallProcess();
                    installProcess.Execute(installArgs);
                    break;

                case "delete":
                    DeleteArgs    deleteArgs    = new DeleteArgs(args);
                    DeleteProcess deleteProcess = new DeleteProcess();
                    deleteProcess.Execute(deleteArgs);
                    break;

                default:
                    System.Console.WriteLine("No Command Found");
                    break;
                }
            }
            catch (Exception e)
            {
                System.Console.WriteLine("Error occured starting pipeline " + e);
            }
        }
예제 #2
0
 static void Main(string[] args)
 {
     switch (args[0])
     {
         case "install":
             InstallArgs installArgs = new InstallArgs(args);
             InstallProcess installProcess = new InstallProcess();
             installProcess.Execute(installArgs);
             break;
         case "delete":
             DeleteArgs deleteArgs = new DeleteArgs(args);
             DeleteProcess deleteProcess = new DeleteProcess();
             deleteProcess.Execute(deleteArgs);
             break;
     }
 }