-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
⚠ pkg/cli overhaul #1828
⚠ pkg/cli overhaul #1828
Conversation
@estroz and @rashmigottipati this is the cli refactoring I told you about some days ago |
b17b1bf
to
8d6a8f7
Compare
/retest |
8d6a8f7
to
2177510
Compare
e76345b
to
6bfa28c
Compare
8c5163c
to
f94d826
Compare
@estroz @camilamacedo86 @DirectXMan12 This PR should be ready now. Coverage is reporting a 0.4% global reduction. However, the main files invoved have been extensively tested:
|
With this patch applied it works:
|
f94d826
to
9db108d
Compare
Signed-off-by: Adrian Orive <adrian.orive.oneca@gmail.com>
9db108d
to
cb369d9
Compare
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Adirio, estroz The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@camilamacedo86 @estroz this just needs a |
/lgtm |
/override coverage/coveralls |
1 similar comment
/override coverage/coveralls |
Force merging this because the broken check doesn't make sense. Lets follow up with a better fix. |
Description
pkg/cli: mayor overhaul
pkg/plugin: add
Validate
andValidateKey
helpers instead ofValidateName
. The logic of this helpers was inpkg/cli/plugins.go
previously.Motivation
TODO
version
.NOTE TO REVIEWERS
Side by side comparisson of
pkg/cli/cli.go
andpkg/cli/cli_test.go
does not provide any value. It will be easier to clone this branch and review the files locally together with the newpkg/cli/options.go
andpkg/cli/options_test.go
files.