Skip to content

Conversation

philocalyst
Copy link
Contributor

Hey! Thanks so much Alin for being so willing to work with me in PM's to help me figure out the complexities of Xcode development! I've managed to figure everything out now, and this encapsulates a completely new CLI interface for PearCleaner, one that leverages the ArgumentParser library to the highest degree and allows for a much more maintainable CLI module.

Some notes:

  • I had to change a lot of things around in Xcode to build locally, so the actual addition of the library isn't captured in these commits
  • It appears I'm using a different formatting style than you, but without an editor preferences file, I couldn't tell how to move back to your style. If you format these changes on your side, they should resolve to normal.

- Now remove the first argument (the program argument) as argparse
expects
- Removed the isTerm checks as argparse does this internally
- Added a do catch for possible errors thrown by the cli correctly
- Set up dependencies correctly
- Calling using parseasroot to catch all cases
@alienator88
Copy link
Owner

Hey, what's up Miles, thanks for doing this!
Merging this now, I'll have to add some new code to check if a user has enabled the existing "pearcleaner" symlink and change it to "pear". Just with the PR changes alone, it would break existing users.
I'll have this out in the next release.

@alienator88 alienator88 merged commit 98cf9f9 into alienator88:main May 19, 2025
@philocalyst
Copy link
Contributor Author

Okay!! Thank you so much for working with me again, don't be afraid to ask any questions you have about my code as/if problems arise. I'll be around for maintenance ;)

@alienator88
Copy link
Owner

Sounds good. Just fyi, I went ahead and removed the run sub-command as it's not needed anymore.
Before I had the Debug console in the app, users could only get app logs by launching from terminal, but with that console addition a while back, run is redundant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants