-
Notifications
You must be signed in to change notification settings - Fork 213
Add --every / -e option to the new command #1052
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
Closed
Closed
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
e88cce8
Update IRC references to Libera.Chat
b71d522
Add --every / -e option to the new command
99f4e9d
Merge pull request #1051 from pimutils/irc
fa85104
Update doc/source/usage.rst
allanwind b5ecb5b
Update doc/source/usage.rst
allanwind 7fb7007
until/every empty string should be mapped to None
b56be97
Update khal/controllers.py
allanwind ed3f16d
Update khal/controllers.py
allanwind ca7b619
Update khal/controllers.py
allanwind 20ede9b
Update khal/parse_datetime.py
allanwind fcae16b
Add --every / -e option to the new command
e847c88
Update doc/source/usage.rst
allanwind 1693d52
Update doc/source/usage.rst
allanwind 09c0ccb
until/every empty string should be mapped to None
1df179f
Update khal/controllers.py
allanwind 5b5f08a
Update khal/controllers.py
allanwind e950299
Update khal/controllers.py
allanwind 11bc781
Update khal/parse_datetime.py
allanwind 358af65
Fix #1054 - description should be optional
ccd19ca
Parsing errors should not result in data loss
fcdb1c4
Merge branch '999' of github.com:allanwind/khal into 999
d8b324c
Typo
b6cf6e9
Module 'click.types' has no attribute 'BadParameter'
e36d0a9
Prompt should match option name
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
until/every empty string should be mapped to None
Fix #999. This also addresses a defect where editing a previously saved event cause the 3 rrule properties (freq, until and interval) to have incorrect default type (list instead of str), and freq value is forced to lower case as the current code requires it but more important that is how the values are presented in the interactive session.
- Loading branch information
There are no files selected for viewing
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
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
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.
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.
This "helper" feels like it's overcomplicating things to me. Especially with the two optional arguments that are only used once each - i.e. it's called 3 times, with 2 special cases.
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.
I added the helper to eliminate the duplicate logic for the 3 attributes. This shrunk the code from 14 to 7 lines not counting the helper. Planning on using it to fix #1054 which would make it the 4th use, and it's duplicated against for the "else" attribute case and alarm (6 uses).
No love lost on the lower case conversion special case either, but it needs to happen after the type coercing from list to str. The better alternative is probably to split the function into two: 1. convert value, if list, to str. Any idea of name for this function? 2. "None" business then handle the case conversion for frequency inline.
In either case, I was looking for input on #1050 to see if we can eliminate the magic "None" value, so this just leaves the type conversion.