Commit c0f8eee
Document new parameters in Harness.output(), _render(), and parse()
Addresses gemini-code-assist feedback on
#3 — template_dir was
missing from the docstrings of Harness.output(), Harness._render(),
and wireviz.parse(). Expanded scope to also document the parameters
that earlier PRs in this chain added without docstring coverage:
* Harness.output(): Args section now describes filename (incl. None →
stdout semantics), fmt (incl. str→tuple normalization), output_dir,
output_name, and template_dir; view/cleanup are noted as kept for API
compat.
* Harness._render(): Args + Returns sections describing fmt,
output_dir, output_name, template_dir, and the bytes-vs-str
per-format return contract.
* wireviz.parse(): source_path (added during PR #1's loopback fix and
threaded through PR #2's stdin/stdout port) and template_dir (this
PR) added to the Args section, with template-search-priority
semantics spelled out.
No behavior change. Verified against build_examples.py: deterministic
outputs unchanged.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent a8abc2b commit c0f8eee
2 files changed
Lines changed: 51 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
687 | 687 | | |
688 | 688 | | |
689 | 689 | | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
| 699 | + | |
| 700 | + | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
690 | 710 | | |
691 | 711 | | |
692 | 712 | | |
| |||
737 | 757 | | |
738 | 758 | | |
739 | 759 | | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
740 | 780 | | |
741 | 781 | | |
742 | 782 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
80 | 91 | | |
81 | 92 | | |
82 | 93 | | |
| |||
0 commit comments