hledger-1.52.1: Command-line interface for the hledger accounting system

Safe Haskell | None
Language | GHC2021

Hledger.Cli.Commands.Setup

Description

Check and show the status of the hledger installation.

Synopsis

- setupmode :: Mode RawOpts
- setup :: CliOpts -> Journal -> IO ()

# Documentation

setupmode :: Mode RawOpts Source #

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.