run_rendercv
¶
collect_input_file_paths(input_file_path, design=None, locale=None, settings=None)
¶
Collect all input file paths involved in a render.
Why
A render may involve multiple files: the main YAML, plus overlay files for design/locale/settings provided via CLI flags or referenced in settings.render_command. Watch mode needs this complete list to monitor all of them for changes, and the render pipeline needs the resolved paths to read overlay file contents.
Parameters:
-
input_file_path(Path) –Path to the main YAML input file.
-
design(Path | None, default:None) –CLI-provided design file path.
-
locale(Path | None, default:None) –CLI-provided locale file path.
-
settings(Path | None, default:None) –CLI-provided settings file path.
Returns:
-
dict[Literal['input', 'design', 'locale', 'settings'], Path]–Mapping from role ("input", "design", "locale", "settings") to path.
Source code in src/rendercv/cli/render_command/run_rendercv.py
run_rendercv(input_file_path, progress, **kwargs)
¶
Execute complete CV generation pipeline with progress tracking and error handling.
Parameters:
-
input_file_path(Path) –Path to the main YAML input file.
-
progress(ProgressPanel) –Progress panel for output display.
-
kwargs(Unpack[BuildRendercvModelArguments], default:{}) –Optional YAML overlay strings, output paths, and generation flags.
Source code in src/rendercv/cli/render_command/run_rendercv.py
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.