Repository navigation
Refactor cmd/nerdctl - #3379
Refactor cmd/nerdctl#3379
Conversation
cba2c35 to
aca4bf9
Compare
|
@AkihiroSuda @djdongjin and others: lmk if you think this is going in the right direction (before I invest more effort into this). |
AkihiroSuda
left a comment
There was a problem hiding this comment.
Thanks, I think this direction is fine, as long as the CI can remain green
|
@Zheaoli lmk what you think. |
|
@AkihiroSuda I am sending atomic commits on this, where each commit does one simple/clear thing. In the case here, though, lmk if you folks would prefer me to squash. |
|
Thanks, in this case commits should remain unsquashed 👍 |
022a974 to
db02b9e
Compare
|
@AkihiroSuda I clearly hit a snag wrt testing (maybe that is what stopped the previous refactoring attempt). This is still good to review right now - at least to validate that in principle we are all fine with the direction and that "what was moved where" does make sense. |
This PR is mostly LGTM. BTW I think maybe we can split it into multiple some PR. |
80ebbe2 to
7e87989
Compare
Thanks a lot @Zheaoli ! I did split this into a bunch of separate commits - so, that should be easing review in the same way different PRs would. That being said, I also split it into two PRs (next one being: #3383) as it was indeed growing out of control. |
8d6aee1 to
4184037
Compare
0b00798 to
9595679
Compare
|
🤦♂️
|
1f78a5f to
39f9435
Compare
|
@AkihiroSuda @Zheaoli CI is green. This is ready AFAIC. We need to merge #3384 first as it has important fixes for testing, and then this (will keep here in sync as #3384 gets modified following review) |
39f9435 to
e2e3ef7
Compare
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
AddIntFlag AddDurationFlag AddStringFlag checkExperimental createBuildContext testComposeUp requiresStargz newJWEKeyPair rmiAll Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
Signed-off-by: apostasie <[email protected]>
e2e3ef7 to
d5a00f4
Compare
This is in light of #3375 and #1680
The overall goal is to break down cmd/nerdctl.
These commits do:
cmd/nerdctl/helperscmd/nerdctl/completioncmd/nerdctl/logincmd/nerdctl/namespacecmd/nerdctl/networkcmd/nerdctl/volumecmd/nerdctl/imagecmd/nerdctl/buildercmd/nerdctl/apparmorcmd/nerdctl/internalThis is purely refactoring, and there is no functional or logic change (see testing note at the bottom though).
Further note that this PR does not try to "cleanup" anything besides that. Specifically out of scope for now (could be done in a subsequent PR):
Also, this PR is big enough now - what remains to be done (containers and compose) are big chunks on their own, and I would rather merge this first then tackle these two in the next PR.
This is on-top of #3384 that should be merged first.