-
Notifications
You must be signed in to change notification settings - Fork 103
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
Redesign to version v3 #108
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work! I think this makes the project much much cleaner and easier to build upon. I have a few suggestions as to how it can be improved even slightly further IMO, as well as some nitpicks.
Thanks again @elivlo ! If you setup a GitHub sponsors account one day I'd be glad to give you some money for your invaluable help on this project.
+ Recent functions like Async, Streamer and Progress must be configured + No direct output to file for now + Resume is not working so drop it
3e9d564
to
00501bf
Compare
3846753
to
418a8e0
Compare
@Ullaakut I finished all my work on this branch :) |
+ Decrese progress to every tenth of a second + Make progressIndex more readible
Oh, I forgot some hidden comments. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some more nitpicks, but this looks good to me :)
go.mod
Outdated
github.com/davecgh/go-spew v1.1.0 // indirect | ||
github.com/pmezard/go-difflib v1.0.0 // indirect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For sure those two should not be added. Not sure about the YAML dependency as well but I didn't read everything yet
fccf508
to
a96b94e
Compare
+ Before it was required as argument + Change to go1.20 and remove unused module from mod
I have done some brainstorming on how to redesign this library.
Here are my first ideas on how we could change the API:
Run
functions were too muchRun
functionToFile
: writes XML directly to a file and outputs normal output to stdoutContext
: adds a context directly to exec command instead of triggering the timeout in codeAsync
,Progress
andStreamer
are the derived functions@Ullaakut What do you think of this idea?