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

Tools: improve uploader output in scripts #23771

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Tools: improve uploader output in scripts #23771

wants to merge 1 commit into from

Conversation

julianoes
Copy link
Contributor

When the px_uploader.py is used scripted, so without an interactive shell, the progress bar doesn't update. Therefore, I suggest to print a new line instead of a carriage return for the non-interactive shell case.

When the px_uploader.py is used scripted, so without an interactive
shell, the progress bar doesn't update. Therefore, I suggest to print a
new line instead of a carriage return for the non-interactive shell
case.
@dakejahl
Copy link
Contributor

dakejahl commented Oct 4, 2024

At some point I want to make a PR to wrap the writes to stdout in a function which optionally outputs in JSON instead. I implemented a hacky version here. It's nice for scripting and displaying progress to a web app.
https://github.com/ARK-Electronics/ark_companion_scripts/blob/main/platform/common/scripts/px_uploader.py#L432-L441

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.

2 participants