Skip to content

Commit c99e8ae

Browse files
committed
fix labels
1 parent e58783d commit c99e8ae

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

qur.go renamed to main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99
func getParameter() (services.ConnectionSetting, services.ReplaceSetting) {
1010
var token, team, srcDomain, dstDomain string
1111

12-
fmt.Print("トークン : ")
12+
fmt.Print("アクセストークン : ")
1313
fmt.Scan(&token)
1414

15-
fmt.Print("変換前ドメイン : ")
15+
fmt.Print("置換前文字列 : ")
1616
fmt.Scan(&srcDomain)
1717

18-
fmt.Print("変更後ドメイン : ")
18+
fmt.Print("置換後文字列 : ")
1919
fmt.Scan(&dstDomain)
2020

21-
fmt.Print("所属チーム(Optional) : ")
21+
fmt.Print("所属チーム(Qiita:Teamの場合のみ) : ")
2222
fmt.Scan(&team)
2323

2424
return services.ConnectionSetting{

services/qiita_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ func ReplaceBodyUrlDomain(qc *clients.QiitaClient, r ReplaceSetting) {
6767
qc.PatchItemById(item.ID, &replacedPatchRequest)
6868
replacedItemCount++
6969

70-
fmt.Printf("replace done. url : %s ", item.URL)
70+
fmt.Printf("replace done. url : %s \n", item.URL)
7171
}
7272
}
7373
if len((*items).Response) != getPerPage {
@@ -76,5 +76,5 @@ func ReplaceBodyUrlDomain(qc *clients.QiitaClient, r ReplaceSetting) {
7676
page++
7777
}
7878

79-
fmt.Printf("変換した記事の数 : %d / %d\n", replacedItemCount, itemCount)
79+
fmt.Printf("置換した記事数 / 全記事数 : %d / %d\n", replacedItemCount, itemCount)
8080
}

0 commit comments

Comments
 (0)