#todo-txt #todo #color-scheme

程序 妈妈

用于管理 todo.txt 的命令行应用程序

1 个不稳定版本

0.1.0 2021年6月16日

#7#todo-txt

自定义许可协议

35KB
902 代码行

妈妈

用于管理 todo.txt 的命令行应用程序

安装

使用 cargo

$ cargo install mama

从 git 源码

$ cargo install --git https://github.com/teervo/mama.git

使用方法

A command line application for managing todo.txt

Usage: mama <command> [arguments]

Available commands:
add           Add a new task to the list
complete      Mark a task as completed
help          Show help for a command
ls            List all tasks
rm            Remove a task from the list
uncomplete    Mark a previously finished task as uncompleted
undo          Undo previous command

示例

列出所有任务

$ mama
  ID
   1 Implement new color scheme for @kitchen appliances +kitchenmakeover
   2 Renew subscription to Hobby Horse Monthly
   3 Replenish the pisco decanters in the @office

列出匹配单词的任务

$ mama ls kitchen office
  ID
   1 Implement new color scheme for @kitchen appliances +kitchenmakeover
   3 Replenish the pisco decanters in the @office

长列表包括创建日期、完成日期和优先级

$ mama ls -l
  ID Pri Completed  Created
   1                2021-06-09 Implement new color scheme for @kitchen appliances +kitchenmakeover
   2  C             2021-06-02 Renew subscription to Hobby Horse Monthly
   3  A             2021-06-13 Replenish the pisco decanters in the @office

添加新任务

$ mama add Alphabetize spice rack @kitchen +kitchenmakeover
+ Adding 'Alphabetize spice rack @kitchen +kitchenmakeover' to todo.txt...

  ID
   1 Implement new color scheme for @kitchen appliances +kitchenmakeover
   2 Renew subscription to Hobby Horse Monthly
   3 Replenish the pisco decanters in the @office
   4 Alphabetize spice rack @kitchen +kitchenmakeover

以优先级 A 添加新任务

$ mama add -p A Procure ingredients for the Odelmaß
+ Adding 'Procure ingredients for the Odelmaß' to todo.txt...

  ID Pri Completed  Created
   1                2021-06-09 Implement new color scheme for @kitchen appliances +kitchenmakeover
   2  C             2021-06-02 Renew subscription to Hobby Horse Monthly
   3  A             2021-06-13 Replenish the pisco decanters in the @office
   4                2021-06-16 Alphabetize spice rack @kitchen +kitchenmakeover
   5  A             2021-06-16 Procure ingredients for the Odelmaß

标记任务为完成

$ mama complete 3
 Completed task 3, 'Replenish the pisco decanters in the @office'

  ID
   1 Implement new color scheme for @kitchen appliances +kitchenmakeover
   2 Renew subscription to Hobby Horse Monthly
  3 Replenish the pisco decanters in the @office
   4 Alphabetize spice rack @kitchen +kitchenmakeover
   5 Procure ingredients for the Odelmaß

删除一个或多个任务

$ mama add rm 2 3
 Deleted task 2, 'Renew subscription to Hobby Horse Monthly'.
 Deleted task 3, 'Replenish the pisco decanters in the @office'.

  ID
   1 Implement new color scheme for @kitchen appliances +kitchenmakeover
   2 Alphabetize spice rack @kitchen +kitchenmakeover
   3 Procure ingredients for the Odelmaß

依赖关系

~2–12MB
~103K SLoC