Add a command to list available build targets
Open
cabal-install: v2-build system
status: consider closing
type: enhancement
- Dominant language
- Haskell
- Stars
- 1.7k
- Forks
- 750
- Avg merge
- 4d 3h
- Merged PRs (30d)
- 28
Description
Given that `cabal.project` can list additional local components, each with its own cabal file, it is not always clear what the appropriate build targets are.
So perhaps add a command that will list the targets, e.g.
```
cabal list-targets
component Cabal
cabal (lib)
cabal:unit-tests (test-suite)
cabal:parser-tests (test-suite)
cabal:parser-hackage-tests (test-suite)
...
component cabal-install
cabal-install:cabal (exe)
cabal-install:unit-tests (test-suite)
,,,
```
Contributor guide
Assessment
This issue has not been assessed yet.