예제 #1
0
		public ExitCode Run(string[] args)
		{
			try
			{
				var options = new Options();
				options.ParseArguments(args);

				var task = new Migrator();
				task.Run(new Configuration(options));
			}
			catch (Exception err)
			{
				Console.Error.WriteLine(err.ToString());
				return ExitCode.Failure;
			}

			return ExitCode.Success;
		}
예제 #2
0
        public ExitCode Run(string[] args)
        {
            try
            {
                var options = new Options();
                options.ParseArguments(args);

                var task = new Migrator();
                task.Run(new Configuration(options));
            }
            catch (Exception err)
            {
                Console.Error.WriteLine(err.ToString());
                return(ExitCode.Failure);
            }

            return(ExitCode.Success);
        }