todo-cli

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 3, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

README

todo-cli

Quick Todo CLI using Go and SQLite

image

Description

This is a simple CLI application that allows you to manage your tasks. You can add a new task with Name, Description and Priority. You can list all tasks auto sorted by Priority. You can delete a task by ID or by Name. You can also list all tasks with a specific priority.

The tasks are stored in a SQLite database. The database file is created in the user's temp directory with the name Todos.sqlite. The database file is created when the application is run for the first time.

Features

  • Add a new task with Name, Description and Priority
  • List all tasks auto sorted by Priority
  • Delete a task by ID
  • Delete a task by Name (All Matching Tasks will be deleted)
  • Help Command
  • List all tasks with a specific priority

Requirements

  • Go 1.16 or higher

Installation

go install github.com/RadhiRasho/todo-cli@latest

Usage

todo add "Task Name" "Task Description" # Add a new task
todo add "Task Name" "Task Description" "Task Priority" # Add a new task with priority
todo list # List all tasks auto sorted by Priority
todo delete "Task ID" # Delete a task by ID
todo delete "Task Name" # Delete as task by Name (All Matching Tasks will be deleted)
todo help # Show help
todo prioirty "Priority" # List all tasks with a specific priority

Example

todo add "Task 1" "Task 1 Description" "High"
todo add "Task 2" "Task 2 Description" "Low"
todo add "Task 3" "Task 3 Description" "Medium"
todo list
todo delete "Task 1"
todo list

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL