Add long break#7
Open
evavh wants to merge 98 commits into
Open
Conversation
We have to return an error, println + return Ok(()) will not work. That would make initsystems like systemd return the service as Ok while it encountered an error. I have suppressed the backtrace and location of the error to make it look a bit more presentable.
commit to test CI
No idle reset yet for long break, though it does take into account idle time and resets when counting work time.
Not yet updating status to reflect this
yara-blue
reviewed
Oct 21, 2024
| #[arg(long, value_name = "duration", value_parser = parse_duration)] | ||
| pub long_break_duration: Option<Duration>, | ||
| /// Amount of total work time before next break will be a long break. | ||
| /// Note: run help command to see the duration format. |
Collaborator
There was a problem hiding this comment.
please add an example of how this works given a few settings. More docs always more better :)
1ebb8fe to
e8d9cca
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.