예제 #1
0
        private static void HandleParseError(IEnumerable <Error> errs)
        {
            UnityContainer   ScriptContainer  = ContainerFactory.ConfigureContainer();
            ScriptController scriptController = ScriptContainer.Resolve <ScriptController>();

            scriptController.ExitFailureProgram("\nOverall Status: Unsuccess", 0);
        }
예제 #2
0
        private static void RunOptionsAndReturnExitCode(Options opts, string[] args)
        {
            UnityContainer ScriptContainer = ContainerFactory.ConfigureContainer();

            ScriptContainer.RegisterInstance(opts);
            ScriptController scriptController = ScriptContainer.Resolve <ScriptController>();
            ConfigService    configService    = ConfigService.getConfig();

            configService.SetUp(opts);
            ArgumentController argumentController = new ArgumentController(opts, scriptController);

            argumentController.CheckArgsValidation();
            argumentController.RunArgs(args);
        }
예제 #3
0
 public ArgumentController(Options opts, ScriptController scriptController)
 {
     this.scriptController = scriptController;
     this.opts             = opts;
 }