Skip to content

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

Merged
Alizter merged 2 commits into
ocaml:mainfrom
Alizter:push-pstpukwvoqyk
May 24, 2026
Merged

Alizter merged 2 commits into
ocaml:mainfrom
Alizter:push-pstpukwvoqyk

Conversation

@Alizter

@Alizter Alizter commented May 22, 2026 •

Copy link
Copy Markdown
Collaborator

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
Alizter force-pushed the push-pstpukwvoqyk branch from dd7d8df to 0a25c50 Compare May 22, 2026 17:47
@Alizter
Alizter force-pushed the push-pstpukwvoqyk branch 2 times, most recently from 7405cd3 to 10ebe5c Compare May 24, 2026 14:43
Alizter added 2 commits May 24, 2026 22:09
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 <[email protected]>
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 <[email protected]>
@Alizter
Alizter force-pushed the push-pstpukwvoqyk branch from 10ebe5c to e49aa67 Compare May 24, 2026 21:10
@Alizter
Alizter marked this pull request as ready for review May 24, 2026 21:10
@Alizter
Alizter merged commit 7fca6c1 into ocaml:main May 24, 2026
19 of 21 checks passed
@Alizter
Alizter deleted the push-pstpukwvoqyk branch May 24, 2026 21:19
@Alizter

Alizter commented May 24, 2026

Copy link
Copy Markdown
Collaborator Author

I will revert this PR, after thinking about it I am not happy.

Alizter added a commit that referenced this pull request May 24, 2026
#14710)

Revert #14665 

Revert "feat(show): include directories with targets in dune show
targets"

This reverts commit e49aa67.

---

Revert "refactor(show): add ls_term_gen to support extra arguments"

This reverts commit 19314a0.
@Alizter Alizter added this to the 3.25.0 milestone Jul 8, 2026
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