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

Include option to stream print to stderr #18

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Include option to stream print to stderr #18

merged 1 commit into from
Jun 27, 2024

Conversation

maread99
Copy link
Owner

Directs all print output through new utils.print_it function. In turn that prints to either stdout (default) or stderr. Stream can be set via methods on new config.py module:

  • set_print_stderr()
  • set_print_stdout()

Also, can set print stream to stderr via cli with --print_stderr or -p flags.

Tests included.
Documented to README to new 'Developers' section (see there for reasoning).

Now directs all print output through new `utils.print_it` function.
In turn that prints to a stream, either stdout or stderr, as
dictated by global variable `_print_stdout` on new config
module. `_print_stdout` takes a bool and is set and accessed via
methods on `config.py`. Can also set print stream to stderr from
the cli by passing --print_stderr or -p flag.

Tests included.
Documented to README to new 'Developers' section.
@maread99 maread99 added the enhancement New feature or request label Jun 27, 2024
@maread99 maread99 merged commit 0a0e555 into main Jun 27, 2024
13 checks passed
@maread99 maread99 deleted the stderr branch June 27, 2024 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant