@night-slayer18/leetcode-cli 1.3.2 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -1
- package/dist/index.js +874 -204
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -18,6 +18,7 @@ A modern, feature-rich LeetCode CLI built with TypeScript.
|
|
|
18
18
|
- 🎯 **Daily challenge** - Get today's problem
|
|
19
19
|
- ⚙️ **Configurable** - Set language, editor, and working directory
|
|
20
20
|
- 📂 **Smart file discovery** - Use problem ID, filename, or full path
|
|
21
|
+
- 🔄 **Git Sync** - Auto-sync solutions to GitHub/GitLab
|
|
21
22
|
|
|
22
23
|
## 📚 Documentation
|
|
23
24
|
|
|
@@ -70,7 +71,9 @@ leetcode submit 1
|
|
|
70
71
|
| `submit <id\|file>` | Submit solution to LeetCode |
|
|
71
72
|
| `submissions <id>` | View past submissions |
|
|
72
73
|
| `stat [username]` | Show user statistics |
|
|
74
|
+
| `timer <id>` | Interview mode with timer |
|
|
73
75
|
| `config` | View or set configuration |
|
|
76
|
+
| `sync` | Sync solutions to Git repository |
|
|
74
77
|
|
|
75
78
|
## Usage Examples
|
|
76
79
|
|
|
@@ -181,6 +184,45 @@ leetcode submissions 1 --download
|
|
|
181
184
|
# Keep personal notes
|
|
182
185
|
leetcode note 1 edit
|
|
183
186
|
```
|
|
187
|
+
|
|
188
|
+
### User Statistics
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
# Basic stats (solved count, rank, streak)
|
|
192
|
+
leetcode stat
|
|
193
|
+
|
|
194
|
+
# Weekly activity table (last 12 weeks)
|
|
195
|
+
leetcode stat -c
|
|
196
|
+
|
|
197
|
+
# Skill breakdown by topic tags
|
|
198
|
+
leetcode stat -s
|
|
199
|
+
|
|
200
|
+
# 7-day trend chart
|
|
201
|
+
leetcode stat -t
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Git Integration
|
|
205
|
+
|
|
206
|
+
```bash
|
|
207
|
+
# Sync all solutions to your configured git repo
|
|
208
|
+
leetcode sync
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
### Interview Timer
|
|
212
|
+
|
|
213
|
+
```bash
|
|
214
|
+
# Start timer for a problem (default: Easy=20m, Medium=40m, Hard=60m)
|
|
215
|
+
leetcode timer 1
|
|
216
|
+
|
|
217
|
+
# Custom time limit
|
|
218
|
+
leetcode timer 1 -m 30
|
|
219
|
+
|
|
220
|
+
# View your solve time stats
|
|
221
|
+
leetcode timer --stats
|
|
222
|
+
|
|
223
|
+
# Stop active timer
|
|
224
|
+
leetcode timer --stop
|
|
225
|
+
```
|
|
184
226
|
|
|
185
227
|
### Configuration
|
|
186
228
|
|
|
@@ -195,6 +237,7 @@ leetcode config -i
|
|
|
195
237
|
leetcode config --lang python3
|
|
196
238
|
leetcode config --editor code
|
|
197
239
|
leetcode config --workdir ~/leetcode
|
|
240
|
+
leetcode config --repo https://github.com/username/leetcode-solutions.git
|
|
198
241
|
```
|
|
199
242
|
|
|
200
243
|
## Folder Structure
|
|
@@ -254,7 +297,8 @@ Config is stored at `~/.leetcode/config.json`:
|
|
|
254
297
|
"config": {
|
|
255
298
|
"language": "java",
|
|
256
299
|
"editor": "code",
|
|
257
|
-
"workDir": "/path/to/leetcode"
|
|
300
|
+
"workDir": "/path/to/leetcode",
|
|
301
|
+
"repo": "https://github.com/username/leetcode-solutions.git"
|
|
258
302
|
}
|
|
259
303
|
}
|
|
260
304
|
```
|