github.com/jfrog/jfrog-cli-go@v1.22.1-0.20200318093948-4826ef344ffd/artifactory/commands/npm/npmcommand.go (about)

     1  package npm
     2  
     3  import (
     4  	"github.com/jfrog/jfrog-cli-go/artifactory/utils"
     5  	"github.com/jfrog/jfrog-cli-go/utils/config"
     6  )
     7  
     8  type NpmCommand struct {
     9  	repo               string
    10  	buildConfiguration *utils.BuildConfiguration
    11  	npmArgs            []string
    12  	rtDetails          *config.ArtifactoryDetails
    13  }
    14  
    15  func (nc *NpmCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *NpmCommand {
    16  	nc.rtDetails = rtDetails
    17  	return nc
    18  }
    19  
    20  func (nc *NpmCommand) SetNpmArgs(npmArgs []string) *NpmCommand {
    21  	nc.npmArgs = npmArgs
    22  	return nc
    23  }
    24  
    25  func (nc *NpmCommand) SetBuildConfiguration(buildConfiguration *utils.BuildConfiguration) *NpmCommand {
    26  	nc.buildConfiguration = buildConfiguration
    27  	return nc
    28  }
    29  
    30  func (nc *NpmCommand) SetRepo(repo string) *NpmCommand {
    31  	nc.repo = repo
    32  	return nc
    33  }