| Crates.io | ledgible |
| lib.rs | ledgible |
| version | 0.4.0 |
| created_at | 2025-12-28 23:51:47.339844+00 |
| updated_at | 2025-12-28 23:51:47.339844+00 |
| description | Formatter for ledger and hledger journals |
| homepage | |
| repository | https://git.sr.ht/~eleanor/ledgible |
| max_upload_size | |
| id | 2009584 |
| size | 62,224 |
Formatter for ledger and hledger journals. This is not ready for production use.
Currently, I'm only testing against hledger's standard since it is what I personally use. Once it's complete, I'll verify compatibility with ledger's specification.
Rust version 1.89.0 or later is required to compile.
After installing rustup,
cargo install ledgible
or, for the development version,
cargo install ledgible --git https://git.sr.ht/~eleanor/ledgible --branch main
Formatter for ledger and hledger journals
Usage: ledgible [OPTIONS] [FILE]
Arguments:
[FILE] Input journal
Options:
-o, --output <FILE> Write formatted journal to file
-i, --inplace (DANGEROUS) Overwrite input file
-e, --env Read journal from $LEDGER_FILE
-c, --check Check whether journal is formatted properly
-h, --help Print help
-V, --version Print version
All contributions shall be licensed under GPLv3 or later, except to comply with
the license of an existing file in the repository or with the permission of the
project maintainer. The ./commit.sh script in the repository should be run in
order to ensure the commit meets expectations.
./commit.sh RequirementsInstallation steps will vary from platform to platform. Assuming rustup is
installed, the other requirements can be installed with something like the
following:
cargo install cargo-msrv
rustup component add clippy
rustup component add rustfmt
npm install -g markdownlint-cli
Both rustup and markdownlint-cli are available via package managers such as
Homebrew or
pacman.
In no particular order:
, versus . in numbers