Safe Haskell | None |
---|---|
Language | Haskell2010 |
Hledger.Cli.Commands.Setup
Description
Check and show the status of the hledger installation.
Documentation
setup :: CliOpts -> Journal -> IO () Source #
Test and print the status of various aspects of the hledger installation. May also show extra info and hints on how to fix problems. The goal is to detect and show as much useful information as possible, and to complete this task reliably regardless of what we find, without premature termination or misformatting.
The tests are grouped into setup* routines, so named because they might do more than just test in future.
This is the second version of setup. If it finds that the currently running hledger is not the one installed in PATH (by comparing --version output), it refuses to proceed further until that has been done. This means it can rely on all the latest features and use the hledger API within this process, simplifying things greatly.