hledger-0.15: The main command-line interface for the hledger accounting tool.



Convert account data in CSV format (eg downloaded from a bank) to journal format, and print it on stdout. See the manual for more details.



convert :: CliOpts -> IO ()Source

Read the CSV file named as an argument and print equivalent journal transactions, using/creating a .rules file.

maxFieldIndex :: CsvRules -> IntSource

The highest (0-based) field index referenced in the field definitions, or -1 if no fields are defined.



:: Maybe String

User-supplied date format: this should be tried in preference to all others

-> String 
-> String 

Convert some date string with unknown format to YYYYMMDD.

identify :: [AccountRule] -> String -> String -> (String, String)Source

Apply account matching rules to a transaction description to obtain the most appropriate account and a new description.