lucas-labs / coco

🥥 coco » interactive cli for creating conventional commits.
MIT License
3 stars 0 forks source link

✨ » Show the final commit message before quitting #4

Closed lucas-labs closed 1 month ago

lucas-labs commented 1 month ago

When we have succesfully committed the changes, we should show the final commit information to the user before quitting the app. To do this, we will need access to the AppState from the main function. This means that we will need to actually create the AppState there and pass it down to the MainComponent.

Extracted from:

https://github.com/lucas-labs/coco/blob/7f4ce1ee5829f7c4d91756dc925ddeb2b4f936cd/coco/src/main.rs#L55-L60