@@ -14314,30 +14314,22 @@ let global_substitute text ~reg:expr repl_fun =
1431414314 in
1431514315 String.concat "" (List.rev (replace [] 0 false))
1431614316
14317- end
14318- module OCamlRes
14319- = struct
14320- #1 "oCamlRes.ml"
14321-
14322-
14323- module Res = struct
14324- type node =
14325- | Dir of string * node list
14326- | File of string * string
14327-
14328- end
14329-
14330-
14331-
1433214317end
1433314318module Bsb_templates : sig
1433414319#1 "bsb_templates.mli"
14320+ type node =
14321+ | Dir of string * node list
14322+ | File of string * string
1433514323
1433614324
14337- val root : OCamlRes.Res. node list
14325+ val root : node list
1433814326end = struct
1433914327#1 "bsb_templates.ml"
14340- let root = OCamlRes.Res.([
14328+
14329+ type node =
14330+ | Dir of string * node list
14331+ | File of string * string
14332+ let root = ([
1434114333 Dir("basic",[
1434214334 File(".gitignore",
1434314335 "*.exe\n\
@@ -16322,7 +16314,7 @@ let mkdir_or_not_if_exists dir =
1632216314 "%s expected to be added as dir but exist file is not a dir" dir
1632316315 | Non_exists -> Unix.mkdir dir 0o777
1632416316
16325- let rec process_theme_aux env cwd (x : OCamlRes.Res .node) =
16317+ let rec process_theme_aux env cwd (x : Bsb_templates .node) =
1632616318 match x with
1632716319 | File (name,content) ->
1632816320 let new_file = cwd // name in
@@ -16334,10 +16326,8 @@ let rec process_theme_aux env cwd (x : OCamlRes.Res.node) =
1633416326 List.iter (fun x -> process_theme_aux env new_cwd x ) nodes
1633516327
1633616328let list_themes () =
16337- Format.fprintf Format.std_formatter "Available themes: @.";
16338- Bsb_templates.root
16339- |>
16340- List.iter (fun (x : OCamlRes.Res.node) ->
16329+ Format.fprintf Format.std_formatter "Available themes: @.";
16330+ Ext_list.iter Bsb_templates.root (fun x ->
1634116331 match x with
1634216332 | Dir (x, _) ->
1634316333 Format.fprintf Format.std_formatter "%s@." x
@@ -16346,7 +16336,7 @@ let list_themes () =
1634616336 )
1634716337
1634816338(* @raise [Not_found] *)
16349- let process_themes env theme proj_dir (themes : OCamlRes.Res .node list ) =
16339+ let process_themes env theme proj_dir (themes : Bsb_templates .node list ) =
1635016340 match Ext_list.find_first themes (fun x ->
1635116341 match x with
1635216342 | Dir (dir, _) -> dir = theme
0 commit comments