feat: Refactor output directory handling

This commit refactors the code in `cli_command_render` to improve the handling of the output directory. The previous implementation used a hardcoded path, which has been replaced with a dynamic path based on the `output_folder_name` provided in the `rendercv_settings`. This change allows users to specify a custom output directory for the rendered files.
This commit is contained in:
Akibur Rahman
2024-09-01 11:43:33 +00:00
parent 35b15117e5
commit 54adb667ca

View File

@@ -141,7 +141,6 @@ def cli_command_render(
input_file_path: pathlib.Path = utilities.string_to_file_path(
input_file_name
) # type: ignore
output_directory = pathlib.Path.cwd() / output_folder_name
paths: dict[
Literal["latex", "pdf", "markdown", "html", "png"], Optional[pathlib.Path]
@@ -220,9 +219,6 @@ def cli_command_render(
data_model.rendercv_settings.output_folder_name = output_folder_name
output_directory = pathlib.Path.cwd() / data_model.rendercv_settings.output_folder_name
print(output_directory)
progress.finish_the_current_step()