hledger/extra/accountnames.hs
2012-01-30 17:16:39 +00:00

8 lines
221 B
Haskell

#!/usr/bin/env runhaskell
-- list the default journal's chart of accounts in --flat style
import Hledger
main = do
j <- myJournal
let l = journalToLedger nullfilterspec{empty=True} j
mapM_ putStrLn (accountnames l)