Skip to content

Commit e737107

Browse files
Include problem title
1 parent 3768020 commit e737107

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed
File renamed without changes.

project_euler/test_pe816.py renamed to project_euler/test_pe816_shortest_distance_among_points.py

File renamed without changes.

toolkit.nu

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@ def --wrapped main [...rest] {
33
}
44

55
export def pull [problemNumber] {
6-
let file = {
6+
let file = http get $"https://projecteuler.net/problem=($problemNumber)"
7+
| parse '<title>#{number} {title} - Project Euler</title>'
8+
| get title.0
9+
| str snake-case
10+
| {
711
parent: project_euler
8-
stem: $"test_pe($problemNumber)"
12+
stem: $"test_pe($problemNumber)_($in)"
913
extension: py
10-
} | path join
14+
}
15+
| path join
1116
http get $"https://projecteuler.net/minimal=($problemNumber)"
1217
| lines
1318
| each { $"# ($in)" }

0 commit comments

Comments
 (0)