summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Brox <tobias@redpill-linpro.com>2017-08-30 00:31:41 +0200
committerTobias Brox <tobias@redpill-linpro.com>2017-08-30 00:35:56 +0200
commit4df23c9f0e4be45a4a053cb290d2533516cb0e85 (patch)
tree94262e800870f5a315d86df407e06b5ef0f08cb7
parente4b75877bde487d23d4d39de331c099659522453 (diff)
downloadcalendar-cli-4df23c9f0e4be45a4a053cb290d2533516cb0e85.zip
fix proper command name, fix dependency, compatibility fix on version number, modified defaults to fit with my workflow - due dates should expire immediately by default so we can set a proper due date
l---------calendar-cli1
-rwxr-xr-xcalendar-cli.py6
l---------calendar_cli.py1
-rw-r--r--setup.py4
4 files changed, 7 insertions, 5 deletions
diff --git a/calendar-cli b/calendar-cli
new file mode 120000
index 0000000..e3b7ab8
--- /dev/null
+++ b/calendar-cli
@@ -0,0 +1 @@
+calendar-cli.py \ No newline at end of file
diff --git a/calendar-cli.py b/calendar-cli.py
index cd6a2ec..9398942 100755
--- a/calendar-cli.py
+++ b/calendar-cli.py
@@ -34,7 +34,7 @@ import logging
import sys
import re
-__version__ = "0.11.0-dev"
+__version__ = "0.11.0.dev0"
__author__ = "Tobias Brox"
__author_short__ = "tobixen"
__copyright__ = "Copyright 2013-2016, Tobias Brox"
@@ -761,8 +761,8 @@ def main():
todo_subparsers = todo_parser.add_subparsers(title='tasks subcommand')
todo_add_parser = todo_subparsers.add_parser('add')
todo_add_parser.add_argument('summaryline', nargs='+')
- todo_add_parser.add_argument('--set-due', default=date.today()+timedelta(365))
todo_add_parser.add_argument('--set-dtstart', default=date.today()+timedelta(1))
+ todo_add_parser.add_argument('--set-due', default=date.today()+timedelta(1))
todo_add_parser.add_argument('--is-child', help="the new task is a child-task of the selected task(s)", action='store_true')
for attr in vtodo_txt_one + vtodo_txt_many:
if attr != 'summary':
@@ -775,7 +775,7 @@ def main():
todo_list_parser = todo_subparsers.add_parser('list')
todo_list_parser.add_argument('--todo-template', help="Template for printing out the event", default="{dtstart}{dtstart_passed_mark} {due}{due_passed_mark} {summary}")
- todo_list_parser.add_argument('--default-due', help="Default number of days from a task is submitted until it's considered due", type=int, default=365)
+ todo_list_parser.add_argument('--default-due', help="Default number of days from a task is submitted until it's considered due", type=int, default=14)
todo_list_parser.add_argument('--list-categories', help="Instead of listing the todo-items, list the unique categories used", action='store_true')
todo_list_parser.add_argument('--timestamp-format', help="strftime-style format string for the output timestamps", default="%F (%a)")
todo_list_parser.set_defaults(func=todo_list)
diff --git a/calendar_cli.py b/calendar_cli.py
new file mode 120000
index 0000000..e3b7ab8
--- /dev/null
+++ b/calendar_cli.py
@@ -0,0 +1 @@
+calendar-cli.py \ No newline at end of file
diff --git a/setup.py b/setup.py
index 260921e..a843a49 100644
--- a/setup.py
+++ b/setup.py
@@ -37,10 +37,10 @@ setup(
"Topic :: Internet :: WWW/HTTP",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content :: CGI Tools/Libraries",
],
- scripts=['calendar-cli.py'],
+ scripts=['calendar-cli.py', 'calendar-cli'],
install_requires=[
'icalendar',
- 'caldav>=0.4.0.dev',
+ 'caldav>=0.5.0',
'pytz',
'tzlocal'
],