Skip to content

Commit

Permalink
Techutils update - Adding fields for fix command in NuGet (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman authored Aug 30, 2023
1 parent c5a2b11 commit 4abdfd4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion utils/coreutils/techutils.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,11 @@ var technologiesData = map[Technology]TechData{
Nuget: {
indicators: []string{".sln", ".csproj"},
formal: "NuGet",
// .NET CLI is used for NuGet projects
execCommand: "dotnet",
packageInstallationCommand: "add",
// packageName -v packageVersion
packageVersionOperator: " -v ",
},
Dotnet: {
indicators: []string{".sln", ".csproj"},
Expand Down Expand Up @@ -155,7 +160,7 @@ func (tech Technology) IsCiSetup() bool {
return technologiesData[tech].ciSetupSupport
}

func (tech Technology) GetPackageOperator() string {
func (tech Technology) GetPackageVersionOperator() string {
return technologiesData[tech].packageVersionOperator
}

Expand Down

0 comments on commit 4abdfd4

Please sign in to comment.