twitchdev / twitch-cli

The official Twitch CLI to make developing on Twitch easier.
Apache License 2.0
604 stars 71 forks source link

feat: refactoring 'event' subcommands #325

Closed pixel365 closed 3 months ago

pixel365 commented 4 months ago

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Problem

The problem was that all the 'event' subcommands were located in one file 'events.go', which made it very difficult to read the code and add new subcommands if necessary.

Feature

I refactored and separated the 'event' subcommands, which in my opinion made the code noticeably cleaner and easier to understand and make changes in the future. No functionality or behavior is broken.

Description of Changes:

Checklist