-
Notifications
You must be signed in to change notification settings - Fork 55
/
create.go
40 lines (31 loc) · 868 Bytes
/
create.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package repository
import (
"github.com/jfrog/jfrog-cli-core/utils/config"
)
type RepoCreateCommand struct {
RepoCommand
}
func NewRepoCreateCommand() *RepoCreateCommand {
return &RepoCreateCommand{}
}
func (rcc *RepoCreateCommand) SetTemplatePath(path string) *RepoCreateCommand {
rcc.templatePath = path
return rcc
}
func (rcc *RepoCreateCommand) SetVars(vars string) *RepoCreateCommand {
rcc.vars = vars
return rcc
}
func (rcc *RepoCreateCommand) SetServerDetails(serverDetails *config.ServerDetails) *RepoCreateCommand {
rcc.serverDetails = serverDetails
return rcc
}
func (rcc *RepoCreateCommand) ServerDetails() (*config.ServerDetails, error) {
return rcc.serverDetails, nil
}
func (rcc *RepoCreateCommand) CommandName() string {
return "rt_repo_create"
}
func (rcc *RepoCreateCommand) Run() (err error) {
return rcc.PerformRepoCmd(false)
}