Closed kekoav closed 5 years ago
Merging #230 into master will not change coverage. The diff coverage is
0%
.
@@ Coverage Diff @@
## master #230 +/- ##
======================================
Coverage 0% 0%
======================================
Files 14 16 +2
Lines 782 945 +163
======================================
- Misses 782 945 +163
Impacted Files | Coverage Δ | |
---|---|---|
push.go | 0% <0%> (ø) |
:arrow_up: |
unpack.go | 0% <0%> (ø) |
:arrow_up: |
pull.go | 0% <0%> (ø) |
:arrow_up: |
login.go | 0% <0%> (ø) |
:arrow_up: |
tag.go | 0% <0%> (ø) |
:arrow_up: |
main.go | 0% <0%> (ø) |
:arrow_up: |
diskusage.go | 0% <0%> (ø) |
:arrow_up: |
prune.go | 0% <0%> (ø) |
:arrow_up: |
build.go | 0% <0%> (ø) |
:arrow_up: |
list.go | 0% <0%> (ø) |
:arrow_up: |
... and 6 more |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 158ee8b...876495f. Read the comment docs.
so sorry needs a rebase
@jessfraz rebased, please check again.
merged via #232
What I did
I replaced the existing CLI interface with the same CLI library that is in use in docker/cli: spf13/cobra & spf13/pflag.
Changes
github.com/genuinetools/pkg/cli
withgithub.com/spf13/cobra
. Combine flags where possible leveraging pflag enhancements.img -v
orimg --version
to return short version like docker cli does. Long-formimg version
retains previous behavior.Why did I do that?
Img is touted as a drop-in replacement for
docker
commands. The easiest way for a user to adopt img is if the only modification to their code iss/docker/img/g
. I'd like to improve compatibility and UX as much as possible to help drive adoption with no gotchas.Detailed reasons
Other Feedback
I found it tricky to create a clean development environment to get the build working (all make commands). I added a Dockerfile.dev file which helped me along (based it off what I saw in travis config). Streamlining the process for a contributor would be helpful.