예제 #1
0
 public Processor(Transmogrifier transmogrifier, string[] args)
 {
     _transmogrifier = transmogrifier;
     _args = args ?? new string[0];
     Handlers.Add(new InitHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new UpToLatestHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new UpToHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new DownToHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new TearDownHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new DropHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new FullRebuildHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new CurrentVersionHandler { Transmogrifier = _transmogrifier });
     Handlers.Add(new HelpActionHandler(HelpMessage));
     Handlers.Add(new ErrorActionHandler());
 }
예제 #2
0
 public Processor(Transmogrifier transmogrifier)
     : this(transmogrifier, Environment.GetCommandLineArgs().Skip(1).ToArray())
 {
 }