summaryrefslogtreecommitdiff
path: root/2025/ocaml/lib/presentation/cli.ml
diff options
context:
space:
mode:
authorDJ O'Leary <dijitol@proton.me>2025-12-01 22:52:12 +0100
committerDJ O'Leary <dijitol@proton.me>2025-12-01 22:52:12 +0100
commitca7631ff2fdc6d783f1ae8043de95dcd1b6b7d08 (patch)
treec92542fac87894f6ab8b8540bb7932fc0c5aa910 /2025/ocaml/lib/presentation/cli.ml
parentcdbf4be6fa793ca1286604bdc2a1bb5c9e6a197a (diff)
feat(file): implement file reader
Diffstat (limited to '2025/ocaml/lib/presentation/cli.ml')
-rw-r--r--2025/ocaml/lib/presentation/cli.ml16
1 files changed, 4 insertions, 12 deletions
diff --git a/2025/ocaml/lib/presentation/cli.ml b/2025/ocaml/lib/presentation/cli.ml
index 6344d07..fba98ae 100644
--- a/2025/ocaml/lib/presentation/cli.ml
+++ b/2025/ocaml/lib/presentation/cli.ml
@@ -1,17 +1,9 @@
-let day_1_example = {|L68
-L30
-R48
-L5
-R60
-L55
-L1
-L99
-R14
-L82|}
-
let run_day = function
| 1 ->
- let answer = Application.Day_1.solve day_1_example () in
+ let content =
+ Infrastructure.File_reader.read_file "../_input/day_01.txt"
+ in
+ let answer = Application.D01p01.solve content () in
Logs.app (fun m -> m "%d" answer) ;
0
| _ ->