Skip to content

Commit

Permalink
Merge pull request #73 from bupd/dev
Browse files Browse the repository at this point in the history
feat: Fix Creating Project Flow
  • Loading branch information
Vad1mo authored Jul 26, 2024
2 parents faaaa8e + 0efdbc7 commit 533879b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/harbor/root/project/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ func CreateProjectCommand() *cobra.Command {
var opts create.CreateView

cmd := &cobra.Command{
Use: "create",
Use: "create [project name]",
Short: "create project",
Args: cobra.ExactArgs(1),
Run: func(cmd *cobra.Command, args []string) {
opts.ProjectName = args[0]
var err error
createView := &create.CreateView{
ProjectName: opts.ProjectName,
Expand All @@ -40,8 +42,7 @@ func CreateProjectCommand() *cobra.Command {
}

flags := cmd.Flags()
flags.StringVarP(&opts.ProjectName, "name", "", "", "Name of the project")
flags.BoolVarP(&opts.Public, "public", "", false, "Project is public or private. Private by default")
flags.BoolVarP(&opts.Public, "public", "", false, "Project is public or private")
flags.StringVarP(&opts.RegistryID, "registry-id", "", "", "ID of referenced registry when creating the proxy cache project")
flags.StringVarP(&opts.StorageLimit, "storage-limit", "", "-1", "Storage quota of the project")
flags.BoolVarP(&opts.ProxyCache, "proxy-cache", "", false, "Whether the project is a proxy cache project")
Expand Down

0 comments on commit 533879b

Please sign in to comment.