#task #file #command #path #cli #txt-file

bin+lib todo-cli-app

yet another todo CLI app written in Rust

10 releases (4 breaking)

0.5.1 Mar 1, 2024
0.5.0 Mar 1, 2024
0.4.0 Feb 9, 2024
0.3.3 Feb 3, 2024
0.1.0 Jan 31, 2024

#1559 in Command line utilities

Download history 8/week @ 2024-01-25 8/week @ 2024-02-01 2/week @ 2024-02-08 20/week @ 2024-02-22 247/week @ 2024-02-29 13/week @ 2024-03-07 14/week @ 2024-03-14 5/week @ 2024-03-28 7/week @ 2024-04-04 89/week @ 2024-04-11

101 downloads per month

MIT license

270KB
299 lines

Demo

Use default todo.txt path Demo

Use custom todo.txt path

# todo-cli-app -f PATH [COMMAND] to add tasks, etc... It will automatically create the txt file
todo-cli-app -f /mnt/c/Users/jackwill/Desktop/todo.txt add "hello world"

Note

Fix: please run todo-cli-app init at your home directory to create the todo.txt file, then you can use the default path and run todo-cli-app list to list the tasks ,etc...

Installation

cargo install todo-cli-app

Usage

todo-cli-app --help
Yet another todo CLI app written in Rust

Usage: todo-cli-app [OPTIONS] <COMMAND>

Commands:
  init   Initialize a new todo file
  add    add tasks
  rm     remove tasks
  list   list tasks
  done   complete tasks
  clear  clear all tasks
  sort   sort tasks
  edit   edit a task
  sync   add tags for the tasks sync from other device
  clean  remove finished tasks
  help   Print this message or the help of the given subcommand(s)

Options:
  -f, --file <FILE>  The path to the file to read/write!
  -h, --help         Print help

Tips

In order not to type the long command when using another todo.txt file,add the code below to your zshrc or bashrc

todo() {
   todo-cli-app -f Path of todo.txt file "$@"
   # like todo-cli-app -f /mnt/c/Users/jackwill/todo/todo.txt "$@"
}

Inspired by

Difference

# todo-cli-app -f PATH [COMMAND] to have more lists or sync the txt file between different devices

todo-cli-app -f C:\Users\jackwill\Desktop\todo.txt add "Buy milk"

todo-cli-app -f C:\Users\jackwill\Desktop\todo.txt list

Dependencies

~3.5–5MB
~90K SLoC