UltraMachine / rust-sc2

SC2 API for Rust
MIT License
38 stars 19 forks source link

Refactor the examples #54

Closed Masterhigure closed 1 year ago

Masterhigure commented 2 years ago

The included examples were full of clap boilerplate, so I refactored it all into a separate module. That way the examples can focus on being examples of how to run a bot, while also making it easier to maintain the app functionality and retain consistency across the examples.

I also added a brief section in the README on how to run those examples, as that's easier and faster than having people look through 150 lines of clap setup to see how to run the things. There is still the matter that the clap_app! macro has been deprecated. But now, if anyone wants to fix that, they only have to fix it in a single place.