Skip to content

Extend cabal list cmd #3202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed

Conversation

mtullsen
Copy link

@mtullsen mtullsen commented Mar 1, 2016

Implements a solution to #879 by extending the cabal 'list' command with a --dependencies option.

I generalize the idea of listing the license field to listing multiple, arbitrary fields (a --field option) of the packages that are dependencies.

This doesn't address the extraction of License files (as discussed in #879).

Implements one solution to haskell#879.

Extends the cabal list command (as described in haskell#879): generalizing the idea of
listing the license field to listing multiple, arbitrary fields of the dependent
packages.
then notice verbosity "No matches found."
else putStr $ unlines (map showPackageSummaryInfo matches)
list verbosity packageDBs repoCtxt comp conf listFlags pats = do
unless (simpleOutput || null fields) $
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So just --field=foo --simple-output is allowed, even though it has no effect? From the error message it looks like the test should be when (not.null fields && (not simpleOutput || not onlyDependencies)) $ die "...".

@colonelpanic8
Copy link

Whats the status of this PR?

@23Skidoo
Copy link
Member

Looks like the author never addressed the review points. I'm inclined to close, but anyone is willing to take over and finish the patches.

@gbaz
Copy link
Collaborator

gbaz commented Aug 12, 2021

We should probably close. There's a different path to some of this now through the plan.json stuff, and arguably that can be extended to the rest. I'm closing now, but if anyone objects speak up.

@gbaz gbaz closed this Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants