Skip to content

Commit

Permalink
Re #6591 Improve online documentation of targets
Browse files Browse the repository at this point in the history
  • Loading branch information
mpilgrem committed May 22, 2024
1 parent d3ce59c commit 39d484d
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions doc/ls_command.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,20 @@ stack ls dependencies [--separator SEP] [--[no-]license] [--filter ITEM]
~~~

`stack ls dependencies` lists all of the packages and versions used for a
project. All project packages are considered by default, but a target can be
specified as an argument. For further information, see the
project. All project packages are considered by default, but one or more targets
can be specified as an argument. For further information, see the
[target syntax](build_command.md#target-syntax) documentation.

!!! note

If the first target is one of `cabal`, `json`, `text` and `tree`, then a
subcommand must be specified.

!!! info

If a specified target is not a project package, then it will not contribute
packages to the command's output.

Subcommands specify the format of the output, as follows:

* `cabal` lists the packages in the format of exact Cabal constraints.
Expand Down

0 comments on commit 39d484d

Please sign in to comment.