提交 f773641e 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

show current config as the default

上级 bd4d48f8
......@@ -137,15 +137,15 @@
},
{
"id": "enter_url",
"translation": "Zentao site url: %s *"
"translation": "Zentao site url: %s"
},
{
"id": "enter_account",
"translation": "Zentao site account: %s *"
"translation": "Zentao site account: %s"
},
{
"id": "enter_password",
"translation": "Account password: %s *"
"translation": "Account password: %s"
},
{
"id": "enter_co_type",
......
......@@ -132,15 +132,15 @@
},
{
"id": "enter_url",
"translation": "请输入禅道站点的网站:%s *"
"translation": "请输入禅道站点的网站:%s"
},
{
"id": "enter_account",
"translation": "请输入登录账号:%s *"
"translation": "请输入登录账号:%s"
},
{
"id": "enter_password",
"translation": "请输入账号密码:%s *"
"translation": "请输入账号密码:%s"
},
{
"id": "enter_co_type",
......
......@@ -43,9 +43,9 @@ func InputForSet() {
if configSite {
url = stdinUtils.GetInput("(http://.*)", conf.Url, "enter_url", conf.Url)
account = stdinUtils.GetInput("(.{3,})", conf.Account, "enter_account", conf.Account)
account = stdinUtils.GetInput("(.{2,})", conf.Account, "enter_account", conf.Account)
password = stdinUtils.GetInput("(.{4,})", conf.Password, "enter_password", conf.Password)
password = stdinUtils.GetInput("(.{2,})", conf.Password, "enter_password", conf.Password)
}
configUtils.SaveConfig(language, url, account, password)
......@@ -71,9 +71,9 @@ func InputForRequest() {
url = stdinUtils.GetInput("(http://.*)", conf.Url, "enter_url", conf.Url)
account = stdinUtils.GetInput("(.{3,})", conf.Account, "enter_account", conf.Account)
account = stdinUtils.GetInput("(.{2,})", conf.Account, "enter_account", conf.Account)
password = stdinUtils.GetInput("(.{4,})", conf.Password, "enter_password", conf.Password)
password = stdinUtils.GetInput("(.{2,})", conf.Password, "enter_password", conf.Password)
configUtils.SaveConfig("", url, account, password)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册