github.com/osievert/jfrog-cli-core@v1.2.7/artifactory/commands/repository/update.go (about) 1 package repository 2 3 import ( 4 "github.com/jfrog/jfrog-cli-core/utils/config" 5 ) 6 7 type RepoUpdateCommand struct { 8 RepoCommand 9 } 10 11 func NewRepoUpdateCommand() *RepoUpdateCommand { 12 return &RepoUpdateCommand{} 13 } 14 15 func (ruc *RepoUpdateCommand) SetTemplatePath(path string) *RepoUpdateCommand { 16 ruc.templatePath = path 17 return ruc 18 } 19 20 func (ruc *RepoUpdateCommand) SetVars(vars string) *RepoUpdateCommand { 21 ruc.vars = vars 22 return ruc 23 } 24 25 func (ruc *RepoUpdateCommand) SetRtDetails(rtDetails *config.ArtifactoryDetails) *RepoUpdateCommand { 26 ruc.rtDetails = rtDetails 27 return ruc 28 } 29 30 func (ruc *RepoUpdateCommand) RtDetails() (*config.ArtifactoryDetails, error) { 31 return ruc.rtDetails, nil 32 } 33 34 func (ruc *RepoUpdateCommand) CommandName() string { 35 return "rt_repo_update" 36 } 37 38 func (ruc *RepoUpdateCommand) Run() (err error) { 39 return ruc.PerformRepoCmd(true) 40 }