We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 306c313 commit a22497eCopy full SHA for a22497e
internal/description/description.go
@@ -0,0 +1,24 @@
1
+package description
2
+
3
+import (
4
+ "github.com/openset/leetcode/internal/base"
5
+ "github.com/openset/leetcode/internal/leetcode"
6
+)
7
8
+var CmdDescription = &base.Command{
9
+ Run: runDescription,
10
+ UsageLine: "description",
11
+ Short: "build all problems description file",
12
+ Long: "build all problems README.md file.",
13
+}
14
15
+func runDescription(cmd *base.Command, args []string) {
16
+ if len(args) != 0 {
17
+ cmd.Usage()
18
+ }
19
+ problems := leetcode.ProblemsAll()
20
+ for _, problem := range problems.StatStatusPairs {
21
+ titleSlug := problem.Stat.QuestionTitleSlug
22
+ leetcode.QuestionData(titleSlug).Data.Question.SaveContent()
23
24
0 commit comments