예제 #1
0
        public GitVersionExecutor(ILog log, IConsole console,
                                  IConfigFileLocator configFileLocator, IConfigProvider configProvider, IGitVersionTool gitVersionTool,
                                  IVersionWriter versionWriter, IHelpWriter helpWriter)
        {
            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(configFileLocator));

            this.gitVersionTool = gitVersionTool ?? throw new ArgumentNullException(nameof(gitVersionTool));

            this.versionWriter = versionWriter ?? throw new ArgumentNullException(nameof(versionWriter));
            this.helpWriter    = helpWriter ?? throw new ArgumentNullException(nameof(helpWriter));
        }
 public GitVersionTaskExecutor(IGitVersionTool gitVersionTool, IOptions <Arguments> options)
 {
     this.gitVersionTool = gitVersionTool ?? throw new ArgumentNullException(nameof(gitVersionTool));
     this.options        = options ?? throw new ArgumentNullException(nameof(options));
     versionVariables    = gitVersionTool.CalculateVersionVariables();
 }
예제 #3
0
 public AppVersion(IGitVersionTool gitVersion, IWebHostEnvironment env)
 {
     _gitVersion = gitVersion;
     _env        = env;
 }