otherlibs/dune-action-plugin/test/depends-on-directory-with-glob/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 glob = Glob.of_string "some_file*" in |
| 7 | let+ listing = read_directory_with_glob ~path:(Path.of_string "some_dir") ~glob in |
| 8 | String.concat "\n" listing |> print_endline |
| 9 | ;; |
| 10 | |
| 11 | let () = run action |