No description
gradle/wrapper | ||
src/main/java | ||
.gitignore | ||
build.gradle | ||
COPYING | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle |
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
- Clone the project
git clone https://github.com/ocineh/Tocli.git
- 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.