-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add more resume related functionality (#44)
* feat: add miette for better error reporting Signed-off-by: simonsan <[email protected]> * feat: pretty print toml Signed-off-by: simonsan <[email protected]> * fix: remove 'autogenerate_ids' from config Signed-off-by: simonsan <[email protected]> * refactor: factor out 'hold_activity' in ActivityStateManagement Signed-off-by: simonsan <[email protected]> * refactor: cleanup Activity traits API from chrono types Signed-off-by: simonsan <[email protected]> * test: fix tests again after big refactoring to ActivityStatus enum Signed-off-by: simonsan <[email protected]> * test: fix a few more tests and implement pace flow test for resume Signed-off-by: simonsan <[email protected]> * feat(resume): implement resume procedure Signed-off-by: simonsan <[email protected]> * feat: create backups of activity log and config file in craft setup Signed-off-by: simonsan <[email protected]> * feat(resume): implement resume command Signed-off-by: simonsan <[email protected]> * docs: update status for commands Signed-off-by: simonsan <[email protected]> --------- Signed-off-by: simonsan <[email protected]>
- Loading branch information
Showing
24 changed files
with
1,000 additions
and
362 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
use getset::Getters; | ||
use typed_builder::TypedBuilder; | ||
|
||
use crate::PaceDateTime; | ||
|
||
/// Options for resuming an activity | ||
#[derive(Debug, Clone, PartialEq, TypedBuilder, Eq, Hash, Default, Getters)] | ||
#[getset(get = "pub")] | ||
#[non_exhaustive] | ||
pub struct ResumeOptions { | ||
/// The resume time of the intermission | ||
#[builder(default, setter(into))] | ||
resume_time: Option<PaceDateTime>, | ||
} |
This file contains 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
Oops, something went wrong.