Closed karimalzalek closed 2 months ago
I reviewed the commit instead of the PR :facepalm:
https://github.com/karimalzalek/clipper/commit/d7d51ef6b3fa6468bf3df136375973fc76dea4cd#r143456813
Fixes #14
I should have been clearer, they were things I reported on the commit
Let me review there
@supitsdu Code changes include:
Extracted Content Parsing Logic: The parseContent function handles the logic of determining the content string based on the directText flag and file arguments.
Simplified Main Function: The main function is now more concise, focusing on flag parsing, calling parseContent, and handling the result.
Error Handling: The error handling is streamlined, with errors being returned from parseContent and handled in the main function.