mte/unikernel/duniverse/dune_/otherlibs/dune-action-plugin/examples/choosing_dependency.ml
2025-11-11 02:07:51 +01:00

12 lines
314 B
OCaml

open Dune_action_plugin.V1
let action =
let open O in
let path_to_dependency = read_file ~path:(Path.of_string "foo_or_bar") in
path_to_dependency
|> stage ~f:(fun path_to_dependency ->
let+ data = read_file ~path:(Path.of_string path_to_dependency) in
print_endline data)
;;
let () = run action