コード例 #1
0
 internal Helper(JsonCompositeCommandConfiguration commandConfiguration, JsonChildCommandConfiguration childCommandConfiguration)
 {
     _childCommandConfiguration = childCommandConfiguration;
     _parentInputFilesInfo      = commandConfiguration.ExpectedInputFilesInfo;
     _parentCommandName         = commandConfiguration.CommandName;
     if (commandConfiguration.CustomObjects != null)
     {
         commandConfiguration.CustomObjects.ToList().ForEach(o => _customObjects.Add(o.Name, o.Value));
     }
 }
コード例 #2
0
 public Command(string commandName,
                ITextTransformer textTransformer,
                IFilesProcessor <ParsedFilesResultType> filesProcessor,
                IFileReader fileReader,
                IFileWriter fileWriter,
                ExpectedInputFilesInfo expectedInputFilesInfo) : base(expectedInputFilesInfo)
 {
     _commandName     = commandName;
     _textTransformer = textTransformer;
     _filesProcessor  = filesProcessor;
     _fileReader      = fileReader;
     _fileWriter      = fileWriter;
     ParameterBuilder = new ParameterBuilder();
 }