Esempio n. 1
0
 public void Prepare()
 {
     _variableProvider
     .GetVariableValues()
     .GetValueOrNone(key: GeneratorName)
     .AndThen(name => _variableProvider.RegisterValue(KebabGeneratorName, name.ParamCase()));
 }
Esempio n. 2
0
        public void Register()
        {
            _tools.RegisterTool("tfs", "tf.exe");

            _userInputProvider.RegisterVariablesFromTemplate(VariableDeclarations);

            _userInputProvider[Variable.Branch].VariableSelectionValues.AddRange(_tfsPaths.Branches());

            _variableProvider.RegisterValue(Variable.ProjectGuid, _projectInformation.ProjectGuid);
        }
        public void Register()
        {
            _tools.RegisterTool("tfs", "tf.exe", _pathProvider.GetVisualStudioToolDirectory());

            _userInputProvider.RegisterVariablesFromTemplate(Template.VariableDeclarations);

            _userInputProvider[Variable.Branch].VariableSelectionValues.AddRange(_pathProvider.GetBranches());

            _variableProvider.RegisterValue(TfsProjectRoot, _pathProvider.GetTfsProjectRoot());

            _projectGuid = Guid.NewGuid();
            _variableProvider.RegisterValue(Variable.ProjectGuid, _projectGuid.ToString() !);
            _variableProvider.RegisterValue(Variable.PropertyFilterGuid, CreateGuid());
            _variableProvider.RegisterValue(Variable.SourceFilterGuid, CreateGuid());
            _variableProvider.RegisterValue(Variable.ResourceFilterGuid, CreateGuid());
            _variableProvider.RegisterValue(Variable.IncludeFilterGuid, CreateGuid());
        }