Repository navigation
docs(returns): document the report returns command and returns-group metadata - #1846
Merged
Merged
Conversation
…metadata The `report returns` investment-returns command (money-weighted / XIRR and time-weighted / TWR) and its `--by-group` breakdown were user-facing but undocumented outside clap `--help` and the engine crate README. - docs/commands/report.md: add `returns` to the subcommands table and a dedicated "Investment Returns" section — the five flags, the MWR-vs-TWR distinction, a worked example with real output, and the `--by-group` per-group breakdown (returns-group: tagging, the not-a-sum TOTAL, and the stderr warnings). - docs/reference/syntax.md: document `returns-group:` metadata on `open` directives in the Metadata section, cross-linked with the command page. Example output is copied from an actual `rledger report returns` run. No code change.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
There was a problem hiding this comment.
Pull request overview
Documents the user-facing rledger report returns report and the returns-group: metadata used for --by-group portfolio breakdowns, bringing the CLI behavior into the main end-user docs.
Changes:
- Adds
returnsto therledger reportsubcommand list and documents Investment Returns, including options, example output, price requirements, and per-group breakdown behavior. - Documents
returns-group:metadata onopendirectives and cross-links it to the returns report section.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| docs/commands/report.md | Adds returns subcommand entry and a new “Investment Returns” section with options and grouping guidance. |
| docs/reference/syntax.md | Adds a “returns-group metadata” subsection under Metadata with an example and link to the report docs. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
✅ Compatibility Test Results
What's tested
Full results available in workflow artifacts |
…rning list Copilot review: a missing price at an intermediate cash-flow date degrades TWR to n/a rather than erroring (only the --end valuation and boundary-flow conversions error). Also list the two omitted --by-group warnings: a group named TOTAL, and --by-group with no in-scope tags. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_013gJH7uBBF9Xw9et9QFRcsU
16 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Documents the
rledger report returnscommand andreturns-group:metadata for end users. This feature (money-weighted / XIRR and time-weighted / TWR investment returns, plus the--by-groupper-group breakdown from #1841) was user-facing but had no documentation outside clap--helpand the developer-facing engine crate README — it wasn't even listed in the report command page.Changes
docs/commands/report.mdreturnsto the Subcommands table.--investments,--income,--currency,--end,--by-group) in an options table, the money-weighted vs time-weighted distinction explained for users, a worked example with real output, the price requirement, and a Per-group breakdown subsection coveringreturns-group:tagging, whyTOTALis not the sum of the groups, and the stderr warnings (out-of-scope tag, prefix overlap, not-self-contained).docs/reference/syntax.mdreturns-group:metadata onopendirectives in the Metadata section, cross-linked with the command page.Notes
rledger report returnsrun (verified against the built binary), not hand-written.query.md's options-table style).Documents #1841 (the
--by-groupfeature) and the returns report.🤖 Generated with Claude Code