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

chore(cli pretty): Simplify our runner and have nicer output #710

Merged
merged 3 commits into from
Aug 6, 2024
Merged

Conversation

mdial89f
Copy link
Contributor

@mdial89f mdial89f commented Aug 6, 2024

Purpose

By reducing the capability of our runner in ways that make sense, we can have colorized output with process indicators.

Linked Issues to Close

None

Approach

This runner file originated from another team and has been pretty bomb proof for years. Recently I grew a little discontent with the output, though, since CDK outputs nice colors and also has progress indicators. These things aren't passed through the existing runner; the progress indicator is just new lines.

Looking at why the runner was made, it seems to be so you can run multiple commands in parallel, but still sort the output based on the prefix. That makes a lot of sense. However, we're not orchestrating any commands in parallel. We do run some things in parallel, but not at the shell level. So, I reduced a lot of its logic, and in so doing we have nicer output.

new:
Screenshot 2024-08-06 at 1 49 51 PM
Screenshot 2024-08-06 at 1 50 32 PM

Assorted Notes/Considerations/Learning

None

Copy link
Contributor

github-actions bot commented Aug 6, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 53.46% 4208 / 7871
🔵 Statements 53.34% 4438 / 8319
🔵 Functions 47.83% 1004 / 2099
🔵 Branches 26.84% 793 / 2954
File CoverageNo changed files found.
Generated in workflow #54

Copy link

codeclimate bot commented Aug 6, 2024

Code Climate has analyzed commit 9336da7 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (50% is the threshold).

This pull request will bring the total coverage in the repository to 53.4% (0.0% change).

View more on Code Climate.

Copy link
Collaborator

@asharonbaltazar asharonbaltazar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool stuff, and I love the attention to types

Copy link
Collaborator

@13bfrancis 13bfrancis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heck yeah, lets get it

@mdial89f mdial89f merged commit 50fda12 into main Aug 6, 2024
16 checks passed
@mdial89f mdial89f deleted the pretty branch August 6, 2024 18:37
Copy link
Contributor

github-actions bot commented Aug 7, 2024

🎉 This PR is included in version 1.5.0-val.71 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants