hledger
Safe HaskellNone
LanguageGHC2021

Hledger.Cli.Commands.Get

Description

The get command fetches data for the journal:

  1. Transactions, by running a getdata helper script in the journal's data/ directory (creating the directory if missing).
  2. Market prices, by running a getprices helper script in the journal's prices/ directory (creating the directory if missing).

Each phase is skipped (with a notice) when its helper is not present.

Synopsis

Documentation

getmode :: Mode RawOpts Source #

Command line options for this command.

getcmd :: CliOpts -> Journal -> IO () Source #

The get command. By default runs both phases (data then prices); with -t--transactions or -p--prices, runs only the selected phase(s).