dr-cabal icon indicating copy to clipboard operation
dr-cabal copied to clipboard

Can `dr-cabal` read from stdin?

Open philderbeast opened this issue 2 years ago • 2 comments

Following the instructions on the readme:

> cabal --store-dir=$(mktemp -d) build --dependencies-only all | dr-cabal profile
Missing: (-i|--input FILE_PATH)

Usage: dr-cabal profile (-i|--input FILE_PATH) [-s|--stacked]

Is --input required or can dr-cabal read from stdin?

I installed today with cabal install dr-cabal so that would be dr-cabal-0.2.0.0 wouldn't it?

> dr-cabal --version
Invalid option `--version'

philderbeast avatar Nov 21 '22 13:11 philderbeast

I built from source and now am off to the races :-)

philderbeast avatar Nov 21 '22 13:11 philderbeast

dr-cabal can read from stdin. Maybe you installed the previous version from Hackage? Try running cabal update and install again (but I see that you've already installed it from sources so all should be good 🙂 )

It's indeed unfortunate that there's no --version flag. It'll be added during the work on the following issue:

  • #38

Let me know if you have any other questions or whether this issue can be closed 🙂

chshersh avatar Nov 21 '22 14:11 chshersh