提交 96b306e4 编写于 作者: 徐晓伟's avatar 徐晓伟

🚧 EnvVars CI_API_V4_URL

上级 fc6dae0b
......@@ -44,8 +44,9 @@ func Pipelines() *cli.Command {
},
Flags: []cli.Flag{
&cli.StringFlag{
Name: constant.BaseUrl,
Usage: "实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4",
Name: constant.BaseUrl,
EnvVars: []string{"CI_API_V4_URL"},
Usage: "实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4",
},
&cli.StringFlag{
Name: constant.Token,
......
......@@ -43,8 +43,9 @@ func Projects() *cli.Command {
},
Flags: []cli.Flag{
&cli.StringFlag{
Name: constant.BaseUrl,
Usage: "实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4",
Name: constant.BaseUrl,
EnvVars: []string{"CI_API_V4_URL"},
Usage: "实例地址,例如:https://gitlab.xuxiaowei.com.cn/api/v4",
},
&cli.StringFlag{
Name: constant.Token,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册