-
Notifications
You must be signed in to change notification settings - Fork 486
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
Prettify "build" command cli output #3407
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ndonkoHenri - I've reviewed your changes and they look great!
Here's what I looked at during the review
- 🟡 General issues: 3 issues found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.
@@ -843,7 +857,7 @@ def run(self, args, cwd, capture_output=True): | |||
windll.kernel32.SetConsoleOutputCP(65001) | |||
|
|||
if self.verbose > 0: | |||
print(f"\nRun subprocess: {args}") | |||
console.print(f"\nRun subprocess: {args}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Subprocess output should be logged
Consider logging the subprocess output instead of printing it to the console. This will help in debugging and keeping a record of the operations performed.
console.print(f"\nRun subprocess: {args}") | |
import logging | |
logging.basicConfig(level=logging.INFO) | |
logger = logging.getLogger(__name__) | |
if self.verbose > 0: | |
logger.info(f"Run subprocess: {args}") |
Please fix conflicts. |
# Conflicts: # sdk/python/packages/flet/src/flet/cli/commands/build.py
* prettify "build" command cli output * build-platform-matrix table * consider sourcery-ai's suggestions * new option: --show-platform-matrix | black reformat * Set --show-platform-matrix default value to False * refactor template_data dict
Should now look like below: