CLIear is a Command Line Interface (CLI) application written in Go that helps you manage tasks efficiently. With CLIear, you can create, list, toggle, and delete local dev tasks easily.
- Add Tasks: Create new tasks with a title.
- Edit Task names: Edit existing tasks with a new title.
- List Tasks: View a table of all tasks with details such as title, completion status, and timestamps.
- Toggle Tasks: Mark tasks as completed or not completed.
- Delete Tasks: Remove tasks from the list.
- Go programming language installed on your system.
- Clone the repository to your local machine:
git clone https://github.com/abhinaeae/CLIear.git cd CLIear
- Build the project:
This will create an executable file named
go build ./src
src.exe
(on Windows) orsrc
(on Unix-based systems).
Navigate to the directory containing the executable file, then use the following commands:
./src.exe -add "Task Title" -pri <priority_level[1-5]>
Example:
./src.exe -add "Fix feature 1" -pri 3
./src.exe -edit <task_id>:"new_title"
Example:
./src.exe -edit <2>:"Fix: memory leak"
This edits the title of an existing task with id 2 to "Fix: memory leak"
./src.exe -list
This will display tasks in a tabular format:
./src.exe -toggle <task_id>
Example:
./src.exe -toggle 0
This changes the completion status of the task with ID 0
from incomplete to complete or vice versa.
./src.exe -del <task_id>
If <task_id> is specified as -5, all tasks will be deleted.
Example:
./src.exe -del 0
This deletes the task with ID 0
.
./src.exe -del -5
This clears the task list.
If you run the executable without any arguments, it will display an "Invalid command" message:
./src.exe
Invalid command
- Add a task:
./src.exe -add "Publish code"
- List tasks:
./src.exe -list
- Toggle task completion:
./src.exe -toggle 1
- Delete a task:
./src.exe -del 0
Start managing your tasks with CLIear today!