Skip to content

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

Closed
gpetiot wants to merge 1 commit intoocaml:masterfrom
gpetiot:print-targets
Closed

Add a "dune targets" command to list available targets#1755
gpetiot wants to merge 1 commit intoocaml:masterfrom
gpetiot:print-targets

Conversation

@gpetiot
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Signed-off-by: Guillaume Petiot <guillpetiot@gmail.com>
@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