Skip to content

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

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

gpetiot wants to merge 1 commit into
ocaml:masterfrom
gpetiot:print-targets

Conversation

@gpetiot

@gpetiot gpetiot commented Jan 12, 2019 •

Copy link
Copy Markdown
Contributor

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/*

Comment thread bin/print_targets.ml Resolved
Comment thread bin/print_targets.ml Resolved
Comment thread bin/print_targets.ml Resolved
Comment thread bin/print_targets.ml
>>= 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.

@gpetiot gpetiot Oct 22, 2019 •

Copy link
Copy Markdown
Contributor Author

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.

Comment thread bin/main.ml Resolved
@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