Crates.io | beanru |
lib.rs | beanru |
version | 0.1.0 |
source | src |
created_at | 2023-11-03 07:28:24.178089 |
updated_at | 2023-11-03 07:28:24.178089 |
description | Library to simplify writing read-modify-write scripts for beancount. |
homepage | |
repository | https://github.com/doriath/beanru |
max_upload_size | |
id | 1023893 |
size | 73,884 |
WARNING: This crate is still in early stages and APIs will change.
The goal of this crate (binary) is to make read-modify-write scripts for beancount files easy.
Limitations:
cargo install --git https://github.com/doriath/beanru
First, normalize your beancount file (reformat and drop comments):
beanru normalize -i ledge.beancount
WARNING: I strongly recommend looking at the changes that the script made, to
ensure that no important syntax was dropped. I like to use git diff -w
to
ignore whitespaces. This crate uses different parser than official one, so
ensure no postings or directives were dropped. If you notice any bug, please
file an issue.
Now, the modification scripts can be run.
TODO: provide examples.
APIs:
Features:
rust-script
to make it very simple to write small
scripts that perform some modification on a beancount file.