Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Subclass the shell packets by STDOUT/STDIN/ERR #26

Conversation

SalvatoreT
Copy link
Contributor

Making the packets an explicit class type makes it easier to use a when statement and handle the use cases. Using an int type means that a consumer would have to use an else statement, even though the ID types have already been checked.

@Leland-Takamine
Copy link
Contributor

Leland-Takamine commented Jul 31, 2022

Thanks for the contribution @SalvatoreT! 🎉

Just a couple comments for you to address and then I'll merge this in and deploy a release!

Making the packets an explicit class type makes it easier to use a
`when` statement and handle the use cases. Using an int type means that
a consumer would have to use an `else` statement, even though the ID
types have already been checked.
@SalvatoreT SalvatoreT force-pushed the salvatoret/type-shell-packets branch from ab848ba to 95217c5 Compare August 1, 2022 01:15
@Leland-Takamine Leland-Takamine merged commit fcb2059 into mobile-dev-inc:master Aug 1, 2022
@Leland-Takamine
Copy link
Contributor

Version 0.0.13 is deployed with your changes! Thanks again for the contribution!

@SalvatoreT SalvatoreT deleted the salvatoret/type-shell-packets branch August 1, 2022 14:23
@SalvatoreT
Copy link
Contributor Author

That was fast! Thanks for accepting the contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants