gitlab-go/container_registry/container_registry.go

24 lines
687 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package container_registry
import (
"github.com/urfave/cli/v2"
"github.com/xuxiaowei-com-cn/gitlab-go/flag"
)
// ContainerRegistry 容器仓库 API https://docs.gitlab.cn/jh/api/container_registry.html
func ContainerRegistry() *cli.Command {
return &cli.Command{
Name: "container-registry",
Aliases: []string{"cr"},
Usage: "容器仓库 API中文文档https://docs.gitlab.cn/jh/api/container_registry.html",
Flags: append(flag.Common(), flag.Page(), flag.PerPage(), flag.PrintJson(), flag.PrintTime(),
flag.Id(false), flag.Repository(false), flag.TagName(false)),
Subcommands: []*cli.Command{
List(),
ListTags(),
GetTag(),
DeleteTag(),
},
}
}