コード例 #1
0
        public GitVersionExecutor(ILog log, IConsole console,
                                  IConfigFileLocator configFileLocator, IConfigProvider configProvider,
                                  IGitVersionCalculateTool gitVersionCalculateTool, IGitVersionOutputTool gitVersionOutputTool,
                                  IVersionWriter versionWriter, IHelpWriter helpWriter, IGitRepositoryInfo repositoryInfo)
        {
            this.log               = log ?? throw new ArgumentNullException(nameof(log));
            this.console           = console ?? throw new ArgumentNullException(nameof(console));
            this.configFileLocator = configFileLocator ?? throw new ArgumentNullException(nameof(configFileLocator));
            this.configProvider    = configProvider ?? throw new ArgumentNullException(nameof(configProvider));

            this.gitVersionCalculateTool = gitVersionCalculateTool ?? throw new ArgumentNullException(nameof(gitVersionCalculateTool));
            this.gitVersionOutputTool    = gitVersionOutputTool ?? throw new ArgumentNullException(nameof(gitVersionOutputTool));

            this.versionWriter  = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter));
            this.helpWriter     = helpWriter ?? throw new ArgumentNullException(nameof(helpWriter));
            this.repositoryInfo = repositoryInfo ?? throw new ArgumentNullException(nameof(repositoryInfo));
        }
コード例 #2
0
    public GitVersionExecutor(ILog log, IConsole console,
                              IConfigFileLocator configFileLocator, IConfigProvider configProvider,
                              IGitVersionCalculateTool gitVersionCalculateTool, IGitVersionOutputTool gitVersionOutputTool,
                              IVersionWriter versionWriter, IHelpWriter helpWriter, IGitRepositoryInfo repositoryInfo)
    {
        this.log               = log.NotNull();
        this.console           = console.NotNull();
        this.configFileLocator = configFileLocator.NotNull();
        this.configProvider    = configProvider.NotNull();

        this.gitVersionCalculateTool = gitVersionCalculateTool.NotNull();
        this.gitVersionOutputTool    = gitVersionOutputTool.NotNull();

        this.versionWriter  = versionWriter.NotNull();
        this.helpWriter     = helpWriter.NotNull();
        this.repositoryInfo = repositoryInfo.NotNull();
    }
コード例 #3
0
 public GitVersionTaskExecutor(IFileSystem fileSystem, IGitVersionOutputTool gitVersionOutputTool, IOptions <GitVersionOptions> options)
 {
     this.fileSystem           = fileSystem.NotNull();
     this.gitVersionOutputTool = gitVersionOutputTool.NotNull();
     this.options = options.NotNull();
 }
コード例 #4
0
 public GitVersionTaskExecutor(IFileSystem fileSystem, IGitVersionOutputTool gitVersionOutputTool, IOptions <GitVersionOptions> options)
 {
     this.fileSystem           = fileSystem ?? throw new ArgumentNullException(nameof(fileSystem));
     this.gitVersionOutputTool = gitVersionOutputTool ?? throw new ArgumentNullException(nameof(gitVersionOutputTool));
     this.options = options ?? throw new ArgumentNullException(nameof(options));
 }