用于cli的简单todo工具。

eagle-cli的Python项目详细描述


https://gitlab.com/n1_/eagle/raw/master/logo.png

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,–添加

添加任务(可以多次使用)。

  1. place takes the task name.
  2. place takes date/frequency [optional].
  3. 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
  • 频率(可选)
    • 无日期/频率/重复:-
    • 循环:1d1w1m1y
    • 在某个特定日期:@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]

为什么是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原理),我肯定会开始使用 那。

我能帮忙吗?

当然!我非常乐意接受任何错误报告、改进、请求, 建设性的批评等

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Java:在迭代器类型(接口/实现类)之间转换?   java“Click Method”不断返回“Stale Element Exceoption”?   Android应用程序/进程的java生命周期?   java在发布消息时收到“无法识别的Windowssocket错误:0:recv失败”   java如何返回第二个值   java将基本授权头添加到一些请求中   使用改型安卓的java Post请求错误   PropertyPlaceHolderConfigure位置内的java Spring占位符   java是导入com的工具。谷歌。安卓gms。gcm无法解决,Google Play服务已经安装   java如何获取JSON数据的多个可选值?   java如何使用ApachePOI从word中的形状读取文本   安卓 java。Eclipse中的lang.NoClassDefFoundError,但不适用于Ant   如何在Java中用stream()将Map<v1,Set<v2>>转换为Map<v2,Set<v1>>   循环在java中循环时,如何从数组列表中删除某些内容?