Skip to content
This repository was archived by the owner on Sep 20, 2023. It is now read-only.

Commit 2c1d3d6

Browse files
committed
helper 简化流程
1 parent ab3a03a commit 2c1d3d6

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

Helper/buildProblemDir.go

-16
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
"os/exec"
88
"strings"
99
"syscall"
10-
"time"
1110

1211
"github.com/aQuaYi/GoKit"
1312
)
@@ -74,18 +73,6 @@ func build(p problem) {
7473

7574
creatREADME(p)
7675

77-
// 利用 chrome 打开题目 submissions 页面
78-
go func() {
79-
cmd := exec.Command("google-chrome", "https://leetcode.com/submissions/")
80-
_, err := cmd.Output()
81-
if err != nil {
82-
panic(err.Error())
83-
}
84-
}()
85-
86-
log.Println("等待 10 秒,打开题目页面")
87-
time.Sleep(10 * time.Second)
88-
8976
// 利用 chrome 打开题目页面
9077
go func() {
9178
cmd := exec.Command("google-chrome", p.link())
@@ -95,9 +82,6 @@ func build(p problem) {
9582
}
9683
}()
9784

98-
log.Println("正在打开题目页面")
99-
time.Sleep(2 * time.Second)
100-
10185
log.Printf("%d.%s 的文件夹,创建完毕。\n", p.ID, p.Title)
10286
}
10387

0 commit comments

Comments
 (0)