用于cli的简单todo工具。
eagle-cli的Python项目详细描述
eagle是一个简单的cli todo工具。这太简单了,影响了我的编程技巧。
它是如何工作的?
~ eagle Today: 4. brush yo teeth Your list: 1. do the laundry (every week) 2. buy some food (each other day) 3. buy presents (on 24th December) 4. do the homework [School]
如何安装?
不要担心早期版本号0.x。我更倾向于语义版本控制 而不是“营销版本控制”。这意味着0.5版是 而不是软件,或者版本25,甚至还没有达到一半。
所以:
pip install eagle-cli
如果在python 3旁边运行python 2,则可能需要使用pip3。
要求
- Python3.6+
参数(如何使用)
任务
-a,–添加
添加任务(可以多次使用)。
- place takes the task name.
- place takes date/frequency [optional].
- place takes group [optional].
示例:
~ eagle -a "make yo bed" # Adds a todo ~ eagle -a "make yo bed" today # Adds a todo task for today ~ eagle -a "make yo bed" tomorrow # Adds a todo task for tomorrow ~ eagle -a "make yo bed" 1d # Adds todo for each day ~ eagle -a "make yo sis bed" @20/1/2050 # Adds todo on 20th January 2050 ~ eagle -a "make yo sis bed" @20/1 # Adds todo on 20th January this year ~ eagle -a "make yo sis bed" +5 # Adds todo on 5th day from today ~ eagle -a "make yo dog bed ... someday" @20/1/2050 dog # Adds todo on 20th January 2050 to the "dog" group ~ eagle -a "make yo dog bed groupped" - dog # Adds todo to the "dog" group - notice the "-" as a date.
- 主题whatever
- 频率(可选)
- 无日期/频率/重复:-
- 循环:1d,1w,1m,1y
- 在某个特定日期:@20/1/2050或当前年份的@20/1。
- 表示日期的神奇字符串
- today
- tomorrow
- +X,其中X是天数。例如,+5表示“在5天内”。
如果要将没有日期/频率的任务添加到某个组 使用-作为日期/频率。
eagle -a Task1 - group1
-e,–编辑
编辑任务。 系统会提示用户输入新的标题、频率和组。 在每个提示中,您有3个选择:
- enter a new value
- just hit enter which skips editing of the current property
- enter a space (hit spacebar) which deletes the current property (cannot be used for title)
示例:
~ eagle Today: 1. brush yo teeth ~ eagle -e 1 Here you can edit a task be rewriting current values. If you wanna remove current value (frequency, group) enter one space (hit spacebar) instead. Enter task title: Do the homework Enter frequency: today Enter group (empty space to remove group): Task was successfully updated. Today: 1. Do the homework (09/03/2019)
-d,–del
删除任务(可以多次使用)。
示例:
~ eagle -d 2 ~ eagle Today: 4. brush yo teeth Your list: 1. do the laundry (every week) 2. buy presents (on 24th December) 3. brush yo teeth (every day)
-c,–清除
删除所有任务和组。
示例:
~ eagle Today: 4. brush yo teeth Your list: 1. do the laundry (every week) 2. buy presents (24/12/2019) 3. brush yo teeth (every day) ~ eagle -c Todo list has been cleared out.
–修剪
删除所有过期任务。逾期任务就是这样的任务 日期设置为频率。
示例:
~ eagle Your list: 1. go shopping (1/1/2000) 2. buy presents (24/12/2030) ~ eagle --prune Task "go shopping 10:30" has been deleted. ~ eagle Your list: 1. buy presents (24/12/2030)
–今天
只列出今天的任务。
示例:
~ eagle --today Today: 4. brush yo teeth
–其他
只列出“其他”任务-除今天和过期任务外的所有任务。
示例:
~ eagle --other Your list: 1. buy presents (24/12/2030)
–过期
仅列出过期任务。
示例:
~ eagle --overdue Your list: 1. run (1/9/1939)
组
-a,–添加组
添加组(可以多次使用)。
示例:
~ eagle -A "School"
-d,–删除组
删除包含所有附加任务的组(可以多次使用)。
示例:
~ eagle Your list: 1. do the laundry (every week) 2. do the homework [School] 3. set up project [School] ~ eagle -D "School" Your list: 1. do the laundry (every week)
-s,–软删除组
删除组而不删除附加任务(可以多次使用)。
示例:
~ eagle Your list: 1. do the laundry (every week) 2. do the homework [School] 3. set up project [School] ~ eagle -S "School" Your list: 1. do the laundry (every week) 2. do the homework 3. set up project
-g,–组
列出按组名筛选的任务(可以多次使用)。
示例:
~ eagle Your list: 1. do the laundry (every week) 2. do the homework [School] 3. set up project [School] ~ eagle -g "School" Your list: 2. do the homework [School] 3. set up project [School]
打印选项
–sort=[组]
任务按创建日期和时间排序。你可以覆盖这个 此参数中的选项。
- groups-按组按字母顺序排列任务。首先是任务 没有任何小组。
为什么是cli?
cli是有史以来最好的ui。它很快,干净,没有膨胀,你不必 投入大量的精力让你的软件看起来不错。你也不必重写 或者每年更新(见网络应用)。
此外,如果您 想要(即awesomewm)。
为什么是Gitlab?
很难解释。这是一种“一旦你改变,你就不会回头看”的东西。 你自己试试。
这不就是另一个模仿者吗?
在whi有几个项目ch很好。例如TaskWarrior 它很坚固,几乎覆盖了所有的东西。对我来说太重太花哨了 图表和表格。我想要更安静,更直截了当的东西。
你为什么不用我的?
来自mypy常见问题解答:
Will static typing make my programs run faster? Mypy only does static type checking and it does not improve performance. It has a minimal performance impact. In the future, there could be other tools that can compile statically typed mypy code to C modules or to efficient JVM bytecode, for example, but this is outside the scope of the mypy project.
所以静态类型只是为开发人员而不是机器。一旦它也会有帮助 一台运行python代码更快的机器(cython原理),我肯定会开始使用 那。
我能帮忙吗?
当然!我非常乐意接受任何错误报告、改进、请求, 建设性的批评等