[OCaml] Mobile-friendly clone of cgit.
Move config_writer to its own executable in bin/
config_writer was a top-level side-effect in the library that wrote a default config file on module load. It's now a separate executable (ogit-write-config) with an explicit entry point in bin/.
Changed files
bin/config_writer.ml
@@ -0,0 +1,3 @@
1
Added:
(* -*- mode: tuareg; -*- *)
2
Added:
3
Added:
let () = Ogit.Config.(default |> to_table |> write_file)
bin/dune
@@ -1,6 +1,6 @@
1
1
;;; -*- mode: lisp; -*-
2
2
3
Removed:
(executable
4
Removed:
(public_name ogit)
5
Removed:
(name main)
3
Added:
(executables
4
Added:
(names main config_writer)
5
Added:
(public_names ogit ogit-write-config)
6
6
(libraries ogit))
lib/config_writer.ml
@@ -1,3 +0,0 @@
1
Removed:
(* -*- mode: tuareg; -*- *)
2
Removed:
3
Removed:
let () = Config.(default |> to_table |> write_file)