Skip to content

Commit

Permalink
Add a help section on listing targets.
Browse files Browse the repository at this point in the history
  • Loading branch information
philderbeast committed May 24, 2023
1 parent 0777dc8 commit 3486928
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions doc/build_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,14 @@ supported syntaxes for targets are:

`stack build` with no targets specified will build all local packages.

Command `stack ide targets` to get a list of the available targets in your
project.
## Listing targets

`stack ide targets` lists every available target in your project.

With one or more component type flags this listing can be restricted.

`stack ide targets --exes` lists only exe targets.
`stack ide targets --tests --benchmarks` lists test and benchmark targets.

## Controlling what gets built

Expand Down

0 comments on commit 3486928

Please sign in to comment.