This repository was archived by the owner on Jul 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Conversation
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
migrated opus list to clap logic, implemented displaying finished tasks via the --finished flag
i got stuff to do #work .5 @2022-10-17 translates to: [src/tests.rs:291] &t = Task { id: None, title: "i got stuff to do", tag: "#work", priority: 5, due: "2022-10-17", finished: false, } - this commit changes the behaviour of specifing the priority by commatas to the new implementation which consists of prefixing the prio with a '.': Priority of 5 is to be written as '.5' - updated querying by priority in opus list - add a test for parsing - update usage
- panic if task title is empty
- FINISHED information now appears behind a tasks content if its marked as finished - priority changes are now reflected in printing tasks: before: [2]: 'update excel sheet' (2022-10-13) #work [,,,] after: [2]: 'update excel sheet' (2022-10-13) #work .3 FINISHED
- implement all commands - clear - delete - finish - export - remove unused types - remove old logic - added changes suggested by clippy - update usage
hlxid
suggested changes
Oct 17, 2022
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.
Here are a few code quality related things that you may want to look at.
Functionality-wise this looks good to me.
hlxid
reviewed
Oct 17, 2022
- replace whole if statement with logical 'or' / '||' - add ExportType::from(&str) - update Task::from(&str) - add Task.compare - add makro to extract crate description
hlxid
approved these changes
Oct 18, 2022
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.
LGTM
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Migration to clap
fixes: #14
fixes: #3
improves: #12
lays foundation for: #16
Changes:
migrated to clap:
added
--finished
flag toopus ls
:reworked
opus export
to provide a better interface:switched from specifing a tasks priority with symbols
,
to numbers prefixed with.
rewrote tests and removed everything regarding the self made args parser
improved task displaying: