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

feat: improve CLI conventions #418

Merged
merged 1 commit into from
Jan 6, 2025

Conversation

olsen232
Copy link
Contributor

  • only output true output to stdout, output progress / errors to stderr
    this allows other programs to parse output
  • exit with 1 if there is an error
    this allows other programs to detect errors
  • accept "-" as an input file, meaning stdin
    this allows other programs to stream output into geostyler more easily

I can take out some of these changes and leave in others if only some of them seem good to you.
This may count as a breaking change - if someone is relying on both progress and output being at stdout. I can add the breaking change marker if needed.

- only output true output to stdout, output progress / errors to stderr
  this allows other programs to parse output
- exit with 1 if there is an error
  this allows other programs to detect errors
- accept "-" as an input file, meaning stdin
  this allows other programs to stream output into geostyler more easily
@olsen232
Copy link
Contributor Author

olsen232 commented Jan 4, 2025

Thanks for the approval! Note that even with approval, I can't merge this myself since I don't have write access

@KaiVolland KaiVolland merged commit dde9dfb into geostyler:main Jan 6, 2025
3 checks passed
@olsen232
Copy link
Contributor Author

olsen232 commented Jan 7, 2025

Thanks for merging!

@KaiVolland Can I ask you to release a new version of geostyler-cli when you have time - ideally, including the geostyler-qgis-parser fix too?

Again, thanks for all the code reviews!

@KaiVolland
Copy link
Contributor

I messed up the geostyler-qgis-parser history / release automation so this will need some time.

@GeoStyler-BOT
Copy link

🎉 This PR is included in version 4.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

3 participants