-
Notifications
You must be signed in to change notification settings - Fork 35
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
Allow customising number of lines shown before <n lines omitted> #180
Comments
I've been hesitant to include env variables for controlling things, so far. Unsure if I'm more open to that or a feature flag. |
A feature flag that disables truncating would be great for me if that works for you. |
I'm also not a big fan of feature flags, so that was a bit of "which evil do I prefer?" |
Fair enough. I keep hitting issues where truncated output hides the key details of what went wrong in CI, so I'm also weighing up using a git fork (not ideal) vs not using the crate, vs waiting for this to be an option. I guess this could also be a set of options on the Command struct, so I could do something like: let mut cmd = Command::cargo_bin("mycli")?;
cmd.truncate(false);
// ... |
An alternative would be an option to print the full stdout and stderr to a temp file somewhere, so when the output is small one could just see it inline, but when it is large one could go find it if needed. |
to be able to configure in this way would be very convenient -- also encountered the need to see the full output |
Often in CI I find the important details are lost behind:
this makes it hard to debug issues. It would be great to have an environment variable or similar to customise how much is printed.
The text was updated successfully, but these errors were encountered: