No description
Find a file
2022-11-27 04:47:59 +01:00
gradle/wrapper Update gradle wrapper 2022-06-27 14:18:46 +02:00
src/main/java Add the Card class 2022-11-27 04:47:59 +01:00
.gitignore Initial commit 2021-12-08 20:50:05 +01:00
build.gradle Add the edit subcommand 2022-07-09 09:11:58 +02:00
COPYING Add a license 2022-07-09 09:31:56 +02:00
gradlew Update gradle wrapper 2022-06-27 14:18:46 +02:00
gradlew.bat Update gradle wrapper 2022-06-27 14:18:46 +02:00
README.md Update README.md 2022-07-09 12:10:03 +02:00
settings.gradle Rename the project for Tocli 2022-02-12 19:48:52 +01:00

Tocli

A simple command line interface to manage your todo list.

Features

  • Add a task
  • Delete a task
  • List the tasks
    • Filter by status (undone or done)
    • Filter by creation date (after or before)
    • Filter by title with a regex
    • Filter by todo list
    • Sort by creation date (ascending or descending)
    • Sort by alphabetical order (ascending or descending)
    • Sort by status (undone or done)
  • Edit a task
    • Edit the title
    • Edit the description
    • Edit the status (undone or done)
    • Edit the due date
    • Edit the todo list where the task is
  • Rename a task
  • Mark a task as done
  • Mark a task as not done
  • Export the tasks to a file in JSON format
  • Import the tasks from a file in JSON format

Requirements

  • Gradle
  • Java

Usage

  1. Clone the project
git clone https://github.com/ocineh/Tocli.git
  1. Run the project with gradle
gradle run --args="-h"

Example of use

Add a new task

tocli add "Buy milk" # Add a task to the default todo list
tocli groceries add "Buy milk" # Add a task to the groceries todo list
tocli add "Buy mild" --due "22/12/2018" # Add a task with a due date

Delete a task

tocli delete 0 # Delete the first task in the default todo list
tocli groceries delete 0 # Delete the first task in the groceries todo list

List the tasks

tocli list # List all the tasks
tocli list --done # List all the done tasks
tocli list --undone # List all the undone tasks
tocli list --added-before "2020-01-01" # List all the tasks added before 2020-01-01
tocli list --added-after "2020-01-01" # List all the tasks added after 2020-01-01
tocli list --title "^Buy.*" # List all the tasks with the title starting with "Buy"

Edit a task

tocli edit 0 --title "Buy milk" # Edit the title of a task
tocli groceries edit 0 --title "Buy milk" # Edit the title of a task in the groceries todo list
tocli edit 0 --due "2020-01-01" # Edit the due date of a task
tocli edit 0 --done # Mark the task as done
tocli edit 0 --undone # Mark the task as not done

Rename a task

tocli rename 0 "Buy milk" # Rename the first task in the default todo list
tocli groceries rename 0 "Buy milk" # Rename the first task in the groceries todo list

Mark a task as done or not done

tocli done 0 # Mark the first task in the default todo list as done
tocli groceries done 0 # Mark the first task in the groceries todo list as done

tocli undone 0 # Mark the first task in the default todo list as undone
tocli groceries undone 0 # Mark the first task in the groceries todo list as undone

Export/Import the tasks to/from a file in JSON format

tocli export # Export the tasks in JSON format and print it to the console
tocli export --pretty # Export the tasks in JSON format and print it to the console with pretty print 
tocli export -o tasks.json # Export the tasks in JSON format and save it to tasks.json

tocli import tasks.json # Import the tasks from tasks.json

License

GNU General Public License v3.0 or later

See COPYING to see the full text.