Skip to content

feat(show): include directories with targets in dune show targets#14665

Draft
Alizter wants to merge 3 commits into
ocaml:mainfrom
Alizter:push-pstpukwvoqyk
Draft

feat(show): include directories with targets in dune show targets#14665
Alizter wants to merge 3 commits into
ocaml:mainfrom
Alizter:push-pstpukwvoqyk

Conversation

@Alizter
Copy link
Copy Markdown
Collaborator

@Alizter Alizter commented May 22, 2026

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 .).

Stacked on #14664. The refactor(show): add ls_term_gen to support extra arguments commit is a prerequisite refactor that will be reviewed alongside this change.

Alizter added 3 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>
@Alizter Alizter force-pushed the push-pstpukwvoqyk branch from 0a25c50 to 7405cd3 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 include directories with targets by default

1 participant