@trim21/dprint-plugin-beancount 0.1.10 → 0.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/package.json +1 -1
- package/plugin.wasm +0 -0
package/README.md
CHANGED
|
@@ -14,6 +14,13 @@ The published package includes plugin.wasm for browser/CDN usage.
|
|
|
14
14
|
- crates/beancount-formatter-cli: CLI wrapper around the formatter library.
|
|
15
15
|
- crates/beancount-formatter-py: Python bindings built with PyO3/maturin.
|
|
16
16
|
|
|
17
|
+
## CLI usage
|
|
18
|
+
- Format files in place (default): `beancount-format path/to/file.beancount`
|
|
19
|
+
- Check without modifying (exit 1 if reformat needed): `beancount-format --check path/to/file.beancount`
|
|
20
|
+
- Override config: `--line-width 80 --indent-width 4 --new-line lf --prefix-width 60 --num-width 20`
|
|
21
|
+
|
|
22
|
+
The CLI auto-detects `pyproject.toml` from the working directory or provided paths and merges settings with any CLI overrides.
|
|
23
|
+
|
|
17
24
|
## Development
|
|
18
25
|
- Build CLI: `cargo build -p beancount-formatter-cli --release`
|
|
19
26
|
- Run tests: `cargo test --workspace`
|
package/package.json
CHANGED
package/plugin.wasm
CHANGED
|
Binary file
|