Skip to content

Latest commit

 

History

History
93 lines (52 loc) · 1.29 KB

File metadata and controls

93 lines (52 loc) · 1.29 KB

#To-Do List CLI (Bash Version)

A simple command-line interface (CLI) To-Do List implemented in Bash.
This script allows you to manage tasks directly from your terminal: add, list, mark as done, remove, or clear all tasks.

##Features

  • Add tasks
  • List tasks with numbering
  • Mark tasks as done
  • Remove specific tasks
  • Clear all tasks
  • Easy-to-use CLI interface

##Usage

  1. Clone the repository:

     https://github.com/Kalpiekanayake/linux-todo-cli.git
    
  2. Navigate to the project folder:

     cd linux-todo-cli
    
  3. Make the script executable:

     chmod +x todo.sh
    

Add a task

./todo.sh add "Buy milk"

List tasks

	./todo.sh list

Mark a task as done

	./todo.sh done 1

Remove a task

	./todo.sh remove 1

Clear all tasks

	./todo.sh clear

Show help

	./todo.sh help

##File Storage

Tasks are saved in tasks.txt in the same folder as the script. Each task is stored with a checkbox format:

  • Task not done
  • Task done

##Example Output

Adding tasks:

	$ ./todo.sh add "Buy milk"
		Task added: Buy milk
	$ ./todo.sh add "Read a book"
		Task added: Read a book

Listing tasks:

	$ ./todo.sh list

Your tasks:

    • Buy milk
    • Read a book

Marking as done:

	$ ./todo.sh done 1

Marked task 1 as done. $ ./todo.sh list Your tasks:

    • Buy milk
    • Read a book