Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor active parts into a Swift Package Manager distribution. Add a CLI wrapper. #2

Merged
merged 2 commits into from May 22, 2021

Conversation

adam-zethraeus
Copy link
Contributor

@adam-zethraeus adam-zethraeus commented May 22, 2021

This is cool! I didn't know the APIs were available. I'd have guessed you'd have to package tesseract.
I wanted a version I could build easily from the command line so I could add it to my cross-machine synced setup.

Feel free to ignore, take pieces, etc.

Changes:

  • use swift package manager
  • refactored to keep only the active parts
  • added a CLI arguments wrapper
  • removed the default pbcopy behaviour
  • added --copy or -c flag to copy to clipboard
  • made errors write to stderror and return a failed exit status
  • make the script delete the temporary image

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.

None yet

2 participants