diff options
Diffstat (limited to '2025/ocaml/bin')
| -rw-r--r-- | 2025/ocaml/bin/dune | 11 | ||||
| -rw-r--r-- | 2025/ocaml/bin/main.ml | 16 |
2 files changed, 0 insertions, 27 deletions
diff --git a/2025/ocaml/bin/dune b/2025/ocaml/bin/dune deleted file mode 100644 index 0f6768d..0000000 --- a/2025/ocaml/bin/dune +++ /dev/null @@ -1,11 +0,0 @@ -(executable - (public_name advent_of_code) - (name main) - (libraries - domain - application - infrastructure - presentation - logs - logs.fmt) - (modes byte exe)) diff --git a/2025/ocaml/bin/main.ml b/2025/ocaml/bin/main.ml deleted file mode 100644 index cbfe6d2..0000000 --- a/2025/ocaml/bin/main.ml +++ /dev/null @@ -1,16 +0,0 @@ -let env_log_level = - match Sys.getenv_opt "LOG_LEVEL" with - | None -> - Some Logs.Warning - | Some lvl -> ( - match Logs.level_of_string lvl with Error _ -> None | Ok v -> v ) - -let main () = - let log_level = env_log_level in - Logs.set_level log_level ; - Logs.set_reporter (Logs_fmt.reporter ()) ; - Logs.info (fun m -> - m "Started application with LOG_LEVEL=%s" (Logs.level_to_string log_level) ) ; - Presentation.Cli.run () - -let () = if !Sys.interactive then () else exit (main ()) |
