run_rendercv
¶
run_rendercv(main_input_file_path_or_contents, progress, **kwargs)
¶
Execute complete CV generation pipeline with progress tracking and error handling.
Why
Orchestrates the full flow: YAML → Pydantic validation → Typst generation → PDF/PNG/HTML/Markdown outputs. Catches all error types and displays them through progress panel for clean CLI experience.
Example
Parameters:
-
main_input_file_path_or_contents(Path | str) –YAML file path or raw content string.
-
progress(ProgressPanel) –Progress panel for output display.
-
kwargs(Unpack[BuildRendercvModelArguments], default:{}) –Optional overrides for design/locale files, output paths, and generation flags.
Source code in src/rendercv/cli/render_command/run_rendercv.py
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | |
timed_step(message, progress_panel, func, *args, **kwargs)
¶
Execute function, measure timing, and update progress panel with result.
Why
Each generation step (Typst, PDF, PNG) returns file paths. This wrapper times execution and automatically displays results in progress panel.
Example
Parameters:
-
message(str) –Step description for progress display.
-
progress_panel(ProgressPanel) –Progress panel to update.
-
func(Callable[P, T]) –Function to execute and time.
-
args(P.args, default:()) –Positional arguments for func.
-
kwargs(P.kwargs, default:{}) –Keyword arguments for func.
Returns:
-
T–Function result.