hledger-fmt(1)
πΈ NAME πΈ
Okay bestie, this is the hledger-fmt(1) page from the General Commands Manual, and itβs literally about an opinionated hledger's journal files formatter. Thatβs the whole vibe: hledger journal files go in, formatted journal files come out, and the tool has opinions. π
β¨ SYNOPSIS β¨
hledger-fmt [--fix] [--no-diff] [--exit-zero-on-changes] [-h|--help]
[-V|--version] [FILES]
π DESCRIPTION π
An opinionated hledger's journal files formatter. No cap, thatβs the description β it formats hledgerβs journal files and it is opinionated about it. β¨
π OPTIONS π
Hereβs the full menu, bestie β no skips, no summaries, every flag gets its moment:
--fixβ Fix the files in place. WARNING: this is highkey important: this is a potentially destructive operation, make sure to make a backup of your files or print the diff first. If not passed,hledger-fmtwill print the diff between the original and the formatted file. π--no-diffβ Don't print diff between original and formatted files, but formatted content instead. So instead of the before/after tea, you get the formatted content. π«Ά--exit-zero-on-changesβ Exit with code 0, even if files have been formatted. Itβs giving βno drama, exit code zeroβ energy. π-h,--helpβ Print help. π-V,--versionβ Print version. π·οΈ[FILES]β Paths of files to format. To read fromSTDINpass'-'.
If not defined, hledger-fmt will search for hledger files in the current directory and its subdirectories (those that have the extensions '.journal', '.hledger' or '.j'). If the paths passed are directories, hledger-fmt will search for hledger files in those directories and their subdirectories. πΈ
π EXTRA π
To disable colors in the output, set the environment variable NO_COLOR. Thatβs it β NO_COLOR is the anti-rainbow switch. π«π
π VERSION π
v0.3.9
π Thatβs the tea from the hledger-fmt(1) manual β source/version: hledger-fmt 0.3.9. Stay formatted, bestie! π
π¦ where this page comes from
- nixos 26.05: hledger-fmt 0.3.9
- nixpkgs unstable: hledger-fmt 0.3.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms