Skip to content

feat(show): let dune show targets look inside directory targets#14666

Draft
Alizter wants to merge 4 commits into
ocaml:mainfrom
Alizter:push-yrwupuxptnmm
Draft

feat(show): let dune show targets look inside directory targets#14666
Alizter wants to merge 4 commits into
ocaml:mainfrom
Alizter:push-yrwupuxptnmm

Conversation

@Alizter
Copy link
Copy Markdown
Collaborator

@Alizter Alizter commented May 22, 2026

Introduce Build_system.targets_of to resolve the targets at a given build directory, including paths underneath directory targets. The listing uses validated targets so users can inspect the contents of directory targets directly.

Stacked on #14665.

Alizter added 4 commits May 22, 2026 20:13
Use Load_rules instead of Source_tree to check directory existence.

Fixes ocaml#13782

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Extract the shared term-building logic of `dune show targets` and
`dune show aliases` into a generic `ls_term_gen` that accepts an
extra argument term. This lets descendant commits expose additional
flags without duplicating the path/context handling.

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Walk the `allowed_subdirs` of the loaded directory and surface those
containing build targets in the listing. Add an `-a`/`--all` flag to
also include hidden directories (those starting with `.`).

Fixes ocaml#13783

Signed-off-by: Ali Caglayan <alizter@gmail.com>
Introduce `Build_system.targets_of` to resolve the targets at a given
build directory, including paths underneath directory targets. The
listing uses validated targets so users can inspect the contents of
directory targets directly.

Fixes ocaml#13780

Signed-off-by: Ali Caglayan <alizter@gmail.com>
@Alizter Alizter force-pushed the push-yrwupuxptnmm branch from 5e31e3d to 0884ab9 Compare May 23, 2026 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dune show targets should be able to look inside directory targets

1 participant