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

Feature Request: Add option to print the enviroment with the command #83

Open
elichai opened this issue Mar 24, 2024 · 2 comments
Open

Comments

@elichai
Copy link
Contributor

elichai commented Mar 24, 2024

something like Cmd::set_verbose(self, bool) that if set will print to stderr $ ENV1=KEY1 ENV2=KEY2 ... CMD ARGS this will help debug errors when setting enviroment variables

@matklad
Copy link
Owner

matklad commented Mar 25, 2024

Makes sense to me! We already have Cmd::quiet / set_quiet which controls echoing of the command itself. One design question is the specific naming of methods. I think fn quiet is already wrong, as it is very unclear what that does. So perhaps we can deprecate that and come up with some clearer API

@elichai
Copy link
Contributor Author

elichai commented Mar 27, 2024

@matklad Maybe something like echo_command() and echo_env()?

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

No branches or pull requests

2 participants