Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a "dune targets" command to list available targets #1755

Closed
wants to merge 1 commit into from
Closed

Add a "dune targets" command to list available targets #1755

wants to merge 1 commit into from

Conversation

gpetiot
Copy link
Contributor

@gpetiot gpetiot commented Jan 12, 2019

Add a new command dune targets as suggested in issue #265

  • the DIRS parameters of the command allows to filter the targets, if DIRS=d1,d2, only lists the targets in the following directories:
    • _build/default/d1/*
    • _build/default/d2/*

>>= fun setup ->
let targets = Target.targets_of_path setup Path.root in
List.iter targets ~f:print_endline ;
Fiber.return ()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor, you should be able to remove this by using >>| above.

Copy link
Contributor Author

@gpetiot gpetiot Oct 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't manage to do that.

@gpetiot gpetiot requested a review from nojb as a code owner October 22, 2019 17:16
@gpetiot gpetiot closed this Jan 27, 2020
@gpetiot gpetiot deleted the print-targets branch January 27, 2020 14:30
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.

2 participants