From 741e28118533af274e409bf20c67ebacd540f16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=99=93=E4=BC=9F?= Date: Tue, 16 Jan 2024 11:02:37 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E6=AD=A3=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 22 ++++++++++------------ mix/environments_create_all.go | 3 +-- mix/mix_environments.go | 3 +-- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 2230ef9..e0932c2 100644 --- a/README.md +++ b/README.md @@ -620,18 +620,16 @@ COPYRIGHT: help, h Shows a list of commands or help for one command OPTIONS: - --base-url value 实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4 (default: "https://gitlab.com/api/v4") [%CI_API_V4_URL%] - --token value your_access_token - --owned 当前用户明确拥有的项目。 (default: false) - --skip-project-path value [ --skip-project-path value ] 跳过项目路径 - --skip-project-wiki-path value [ --skip-project-wiki-path value ] 跳过项目wiki路径 - --allow-failure 允许失败 (default: false) - --name value 环境名称 - --external-url value 该环境的链接位置 - --tier value 新环境的层级。允许设置的值为 production, staging, testing, development 和 other - --print-json 打印 JSON (default: false) - --print-time 打印时间 (default: false) - --help, -h show help + --base-url value 实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4 (default: "https://gitlab.com/api/v4") [%CI_API_V4_URL%] + --token value your_access_token + --owned 当前用户明确拥有的项目。 (default: false) + --name value 环境名称 + --external-url value 该环境的链接位置 + --tier value 新环境的层级。允许设置的值为 production, staging, testing, development 和 other + --allow-failure 允许失败 (default: false) + --print-json 打印 JSON (default: false) + --print-time 打印时间 (default: false) + --help, -h show help ``` - 导出(混合命令,多接口命令) diff --git a/mix/environments_create_all.go b/mix/environments_create_all.go index 98d1f53..18c1812 100644 --- a/mix/environments_create_all.go +++ b/mix/environments_create_all.go @@ -16,8 +16,7 @@ func EnvironmentsCreateAll() *cli.Command { Aliases: []string{"a"}, Usage: "所有项目创建新环境", Flags: append(flag.CommonTokenRequired(), flag.Owned(true), - flag.SkipProjectPath(), flag.SkipProjectWikiPath(), flag.AllowFailure(), - flag.EnvName(false), flag.EnvExternalUrl(), flag.EnvTier(), + flag.EnvName(false), flag.EnvExternalUrl(), flag.EnvTier(), flag.AllowFailure(), flag.PrintJson(), flag.PrintTime()), Action: func(context *cli.Context) error { var baseUrl = context.String(constant.BaseUrl) diff --git a/mix/mix_environments.go b/mix/mix_environments.go index 870054d..9f899cf 100644 --- a/mix/mix_environments.go +++ b/mix/mix_environments.go @@ -11,8 +11,7 @@ func Environments() *cli.Command { Aliases: []string{"mix-create-environment", "mix-create-env"}, Usage: "创建新环境(混合命令,多接口命令)", Flags: append(flag.Common(), flag.Owned(false), - flag.SkipProjectPath(), flag.SkipProjectWikiPath(), flag.AllowFailure(), - flag.EnvName(false), flag.EnvExternalUrl(), flag.EnvTier(), + flag.EnvName(false), flag.EnvExternalUrl(), flag.EnvTier(), flag.AllowFailure(), flag.PrintJson(), flag.PrintTime()), Subcommands: []*cli.Command{ EnvironmentsCreateAll(),