Skip to content

move reporting of status to library#179

Merged
jdolitsky merged 2 commits intooras-project:masterfrom
deitch:report-as-option
Oct 1, 2020
Merged

move reporting of status to library#179
jdolitsky merged 2 commits intooras-project:masterfrom
deitch:report-as-option

Conversation

@deitch
Copy link
Contributor

@deitch deitch commented Sep 14, 2020

Resolves #140, specifically this comment by @SteveLasker

One interesting point. I took it "as is" and gave it the ability to accept an io.Writer. Personally, I would prefer something that accepts the logging interface, so that I can pass it as:

oras.WithPushStatusTrack(log)

and then rather than calling fmt.Fprintf(writer), we can just call log.Debug() or similar.

The problem is that log isn't an interface, it is an actual implementation that people pick. This may be good enough for now, and then we can iterate upon it.

@jdolitsky
Copy link
Contributor

/test

Signed-off-by: Avi Deitcher <avi@deitcher.net>
@deitch
Copy link
Contributor Author

deitch commented Sep 30, 2020

This is still open. Can I get a review on it @jdolitsky @SteveLasker ? Let's get it in?

@jdolitsky
Copy link
Contributor

We have CI broken right now.. opened #183 to address, then we should be good w/ this

@jdolitsky jdolitsky merged commit 78a9b6b into oras-project:master Oct 1, 2020
@deitch deitch deleted the report-as-option branch October 1, 2020 07:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move verbose logging into the library and out of cmd?

2 participants