gabm / Satty

Satty - Modern Screenshot Annotation. A tool inspired by Swappy and Flameshot.
Mozilla Public License 2.0
388 stars 18 forks source link

Select tool in toolbar on startup #22

Closed TD-Sky closed 7 months ago

TD-Sky commented 7 months ago

Implementation of https://github.com/gabm/Satty/issues/21

There are some points I need to explain:

TD-Sky commented 7 months ago

To generate completion scripts, a self-described command line parser which doesn't depend on other modules in crate is necessary. It would be reused in build.rs as a module of build script. You can reference my code .

Clap also allows to generate completion scripts at runtime of CLI, but compile time generation which uses build.rs is more convenient for CI/CD. I chose the latter.

I could make a PR for CI/CD and completion scripts this weekend if you need.

gabm commented 7 months ago

got it.. thank you for explaining. If you feel like, i would be very happy for that contribution