IdentityReport¶
Namespace Nfty.Core.Stats in assembly Nfty.Core.
The inspect report: the tree of a CookBook with each Recipe's, Ingredient's and Variant's id shown alongside its name. Ids are the thing this exists for. The CLI's own help says it: "Those ids — not the display names — are what --recipe and --variant expect elsewhere on this command line, so inspect is how you find them." The GUI shows names everywhere and never the ids, so an author working across both had to drop to a terminal to find out what to type.
Methods¶
Render(LoadedCookBook)¶
Renders the report. Weights are formatted with InvariantCulture for the same reason CollectionReport does it: this is text a user copies, pastes into an issue and diffs against a colleague's run, so it must not change with the machine's locale. It used to — a plain interpolation renders 2.5 as 2,5 under sv-SE, and the sibling report beside this one had been invariant since it was written.
Parameters
book(LoadedCookBook) - The CookBook to describe.
Returns. The report text, newline-terminated per line.