Skip to content

vineyy17/cli-task-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Task Manager

A simple and efficient command-line interface (CLI) task manager built with Go. This application allows you to manage your tasks directly from the terminal, providing a streamlined workflow for task creation, listing, completion, and deletion.

Table of Contents

Features

  • Add new tasks

  • List all tasks (including option to show completed tasks)

  • Mark tasks as complete

  • Delete tasks

  • Persistent storage using BoltDB

  • Human-readable time differences for task creation dates

    Installation

  1. Clone the repository:

    git clone https://github.com/vineyy17/cli-task-manager.git
  2. Navigate to the project directory:

    cd cli-task-manager
  3. Build the application: Make sure you have Go installed on your machine. Then, build the project using the following command:

    go build
  4. (Optional) Move the binary to a directory in your PATH for easy access::

    sudo mv cli-task-manager /usr/local/bin/task

Usage

After installation, you can use the task command followed by subcommands to manage your tasks.

Commands

  • task add <task description>: Add a new task
  • task list: List all uncompleted tasks
  • task list --all or task list -a: List all tasks, including completed ones
  • task complete <task_id>: Mark a task as complete
  • task delete <task_id>: Delete a task

Examples

# Add a new task
task add "Go for a walk"

# List all uncompleted tasks
task list

# List all tasks, including completed ones
task list --all

# Mark task 1 as complete
task complete 1

# Delete task 2
task delete 2

Dependencies

  • BoltDB: An embedded key/value database for Go.
  • Cobra: A library for creating powerful CLI applications.
  • timediff: A Go library for formatting time differences in a human-readable way.
  • homedir: A Go library for expanding the user's home directory.

Contributing

Contributions to the CLI Task Manager are welcome! Please feel free to submit a Pull Request.

License

This project is open source and available under the MIT License.

About

A CLI task manager built with go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages