Pass context to own commands and profile runner#280
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #280 +/- ##
==========================================
+ Coverage 77.48% 77.82% +0.34%
==========================================
Files 97 99 +2
Lines 10283 10345 +62
==========================================
+ Hits 7967 8050 +83
+ Misses 2037 2014 -23
- Partials 279 281 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
jkellerer
left a comment
There was a problem hiding this comment.
Like the change. Just have a few comments on the structs.
|
I've implemented your comments (just because it made sense 😆 ) I've also added a method So that's why I moved the log target to the |
|
I’ll also think about the log part and cross check it with the other PR. |
|
Setup logging in context creation actually makes sense since the log target can change (however can't seem to find it in this PR). The only concern I have is that all the |
It's creating The rest is on the following PR actually. I thought that was enough changes for this one already: To set the log from schedule, it's part of the https://github.com/creativeprojects/resticprofile/blob/run-schedule/commands.go#L614 |
|
LGTM |
|
Thanks 😉 |
Contextstruct to pass context information around commands and profiles.run-schedule)mainprefield toownCommandso commands can check the context before runningThat will simplify future work like #259 and #146