Debian Codegraph @

otherlibs/dune-action-plugin/test/depends-on-its-target-by-read-dir/bin/foo.ml

raw
1 open Dune_action_plugin.V1
2 module Glob = Dune_glob.V1
3
4 let action =
5 let open Dune_action_plugin.V1.O in
6 let+ _ = read_directory_with_glob ~glob:Glob.universal ~path:(Path.of_string ".")
7 and+ _ = write_file ~path:(Path.of_string "some_file") ~data:"Hello from some_file!" in
8 ()
9 ;;
10
11 let () = run action