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

refactor(cli): flag cleanup #1351

Merged
merged 3 commits into from
Jan 9, 2024
Merged

refactor(cli): flag cleanup #1351

merged 3 commits into from
Jan 9, 2024

Conversation

krancour
Copy link
Member

@krancour krancour commented Jan 3, 2024

This PR fixes two things I noticed today:

  1. There's a lot of unnecessary complexity in how we're setting up widely used flags for various CLI sub-commands. A little bit of simplification makes this much easier to follow.

  2. The login command was doing flags very differently from how all other commands were, so I fixed it to be more consistent.

@krancour krancour added this to the v0.4.0 milestone Jan 3, 2024
@krancour krancour self-assigned this Jan 3, 2024
@krancour krancour requested a review from a team as a code owner January 3, 2024 06:12
Copy link

netlify bot commented Jan 3, 2024

Deploy Preview for docs-kargo-akuity-io ready!

Name Link
🔨 Latest commit 09e85be
🔍 Latest deploy log https://app.netlify.com/sites/docs-kargo-akuity-io/deploys/6595af1c56c1a300085f1cbf
😎 Deploy Preview https://deploy-preview-1351.kargo.akuity.io
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

codecov bot commented Jan 3, 2024

Codecov Report

Attention: 20 lines in your changes are missing coverage. Please review.

Comparison is base (c343c41) 45.56% compared to head (09e85be) 45.61%.

Files Patch % Lines
internal/cli/cmd/login/login.go 0.00% 20 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1351      +/-   ##
==========================================
+ Coverage   45.56%   45.61%   +0.05%     
==========================================
  Files         135      135              
  Lines       11657    11644      -13     
==========================================
  Hits         5311     5311              
+ Misses       6155     6142      -13     
  Partials      191      191              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Signed-off-by: Kent Rancourt <kent.rancourt@gmail.com>
Copy link
Contributor

@rbreeze rbreeze left a comment

Choose a reason for hiding this comment

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

LGTM! 🙏🏻🎉

@krancour krancour added this pull request to the merge queue Jan 9, 2024
Merged via the queue into akuity:main with commit 237b90b Jan 9, 2024
15 of 16 checks passed
@krancour krancour deleted the krancour/cli-2 branch January 9, 2024 16:45
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.

2 participants