Skip to content

Changes for issue (Reduce complexity when parsing content #14)#15

Merged
supitsdu merged 1 commit intosupitsdu:mainfrom
karimalzalek:main
Jun 24, 2024
Merged

Changes for issue (Reduce complexity when parsing content #14)#15
supitsdu merged 1 commit intosupitsdu:mainfrom
karimalzalek:main

Conversation

@karimalzalek
Copy link
Copy Markdown
Contributor

@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.

@ccoVeille
Copy link
Copy Markdown
Contributor

ccoVeille commented Jun 24, 2024

I reviewed the commit instead of the PR 🤦

karimalzalek@d7d51ef#r143456813

@ccoVeille
Copy link
Copy Markdown
Contributor

Fixes #14

@supitsdu supitsdu self-assigned this Jun 24, 2024
@supitsdu supitsdu added enhancement New feature requests or enhancements. refactoring Issues or PRs to improving code structure, without changing its external behavior labels Jun 24, 2024
@supitsdu supitsdu merged commit 2cec189 into supitsdu:main Jun 24, 2024
@ccoVeille
Copy link
Copy Markdown
Contributor

I should have been clearer, they were things I reported on the commit

Let me review there

supitsdu pushed a commit that referenced this pull request Jun 24, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature requests or enhancements. refactoring Issues or PRs to improving code structure, without changing its external behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants