gitlab-go/mix/mix_environments.go

21 lines
568 B
Go

package mix
import (
"github.com/urfave/cli/v2"
"github.com/xuxiaowei-com-cn/gitlab-go/flag"
)
func Environments() *cli.Command {
return &cli.Command{
Name: "mix-create-environments",
Aliases: []string{"mix-create-environment", "mix-create-env"},
Usage: "创建新环境(混合命令,多接口命令)",
Flags: append(flag.Common(), flag.Owned(false),
flag.EnvName(false), flag.EnvExternalUrl(), flag.EnvTier(), flag.AllowFailure(),
flag.PrintJson(), flag.PrintTime()),
Subcommands: []*cli.Command{
EnvironmentsCreateAll(),
},
}
}