Skip to content

How to know if program has ended? #160

Answered by caarlos0
eltsu7 asked this question in Q&A
Discussion options

You must be logged in to vote

hey, you can write a middleware that does something once the session ends, or do it in the end of the session itself.

e.g. https://github.com/charmbracelet/wish/blob/main/logging/logging.go : notice it logs before and after calling sh(s).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@eltsu7
Comment options

@eltsu7
Comment options

@caarlos0
Comment options

Answer selected by eltsu7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants