コード例 #1
0
        private ScriptOptions Options(string commandLine)
        {
            var optionsParser = new ArgumentsParser(log, plugins, commandLine.Split(' '));
            var arguments     = new ArgumentsService(log, optionsParser);
            var x             = new ScriptOptionsFactory(log, arguments);
            var target        = new Target();

            return(x.Default(target).Result);
        }
コード例 #2
0
        private ScriptOptions?Options(string commandLine)
        {
            var optionsParser = new ArgumentsParser(log, plugins, commandLine.Split(' '));
            var input         = new Mock.Services.InputService(new());
            var secretService = new SecretServiceManager(new SecretService(), input, log);
            var argsInput     = new ArgumentsInputService(log, optionsParser, input, secretService);
            var x             = new ScriptOptionsFactory(log, argsInput);
            var target        = new Target("", "", new List <TargetPart>());

            return(x.Default(target).Result);
        }