private static void HandleParseError(IEnumerable <Error> errs) { UnityContainer ScriptContainer = ContainerFactory.ConfigureContainer(); ScriptController scriptController = ScriptContainer.Resolve <ScriptController>(); scriptController.ExitFailureProgram("\nOverall Status: Unsuccess", 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); }
public ArgumentController(Options opts, ScriptController scriptController) { this.scriptController = scriptController; this.opts = opts; }