topmark.presentation.text.pipeline¶
topmark / presentation / text / pipeline
TEXT pipeline renderers for the TopMark CLI.
This module renders human-facing TEXT output for pipeline-oriented commands
such as topmark check and topmark strip.
TEXT output is console-oriented: it may use verbosity_level for progressive
disclosure, styled for ANSI-capable semantic styling, and compact hints that
refer to -v / -vv. Markdown and machine-readable output are rendered by separate
presentation and machine-readable output layers.
Notes
- ANSI styling primitives (for example, conditional colorization) live in
topmark.cli.presentation. - Markdown pipeline output is implemented in
topmark.presentation.markdown.pipeline. - Machine-readable output is handled via domain machine serializers.
render_pipeline_output_text ¶
Render human-facing TEXT output for a pipeline command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
report
|
PipelineCommandHumanReport
|
Prepared human report for the pipeline command. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Rendered TEXT output for the prepared pipeline report. |
Raises:
| Type | Description |
|---|---|
RuntimeError
|
If an invalid pipeline kind was selected. |
Source code in src/topmark/presentation/text/pipeline.py
714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 | |
render_pipeline_apply_summary_text ¶
Render the apply-summary footer for TEXT output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
command_path
|
str
|
Command path, such as |
required |
written
|
int
|
Number of files written. |
required |
failed
|
int
|
Number of files that failed to write. |
required |
styled
|
bool
|
Whether ANSI-capable styling is enabled. |
required |
Returns:
| Type | Description |
|---|---|
str
|
Rendered TEXT footer. |