github.com/jfrog/jfrog-cli-core@v1.12.1/artifactory/commands/dotnet/legacynuget.go (about)

     1  package dotnet
     2  
     3  import (
     4  	"github.com/jfrog/jfrog-cli-core/artifactory/utils/dotnet"
     5  )
     6  
     7  type NugetLegacyCommand struct {
     8  	*DotnetCommand
     9  }
    10  
    11  func NewLegacyNugetCommand() *NugetLegacyCommand {
    12  	nugetLegacyCmd := NugetLegacyCommand{&DotnetCommand{}}
    13  	nugetLegacyCmd.SetToolchainType(dotnet.Nuget)
    14  	return &nugetLegacyCmd
    15  }
    16  
    17  func (nlc *NugetLegacyCommand) Run() error {
    18  	nlc.useNugetAddSource = true
    19  	nlc.legacy = true
    20  	return nlc.Exec()
    21  }