-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Add .get_kill_on_drop()
method to Command
#7082
Comments
Because this feature is very simple to implement, the purpose of launching this issue is to discuss it with you first, just like last time. If you think it's OK to add, I will initiate a PR. |
Hmm, Rust usually doesn't use the |
Is there any better naming suggestion? It seems that this naming method also exists in the standard library, such as: https://doc.rust-lang.org/stable/std/process/struct.Command.html#method.get_current_dir |
I guess they use What do you want to use this for? |
I am abstracting a cloneable |
I'm okay with adding this method. |
Thank you. Then I will prepare to initiate PR. |
Is your feature request related to a problem? Please describe.
The
Command
of the standard library implements a series ofget_*
methods to obtain the options previously set by the user. Becausekill_on_drop
is a specific option oftokio
, I think we should also add aget
method to this option, which is consistent with the API pattern of the standard library.Describe the solution you'd like
Describe alternatives you've considered
None.
Additional context
This feature request can be regarded as a supplement to this: #7001
The text was updated successfully, but these errors were encountered: