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

     1  package npm
     2  
     3  import (
     4  	"github.com/jfrog/jfrog-cli-core/artifactory/utils"
     5  	"github.com/jfrog/jfrog-cli-core/utils/config"
     6  )
     7  
     8  type NpmCommand struct {
     9  	repo               string
    10  	buildConfiguration *utils.BuildConfiguration
    11  	npmArgs            []string
    12  	serverDetails      *config.ServerDetails
    13  }
    14  
    15  func (nc *NpmCommand) SetServerDetails(serverDetails *config.ServerDetails) *NpmCommand {
    16  	nc.serverDetails = serverDetails
    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  }