Skip to content

A cli for managing todos using MySql database running with docker

Notifications You must be signed in to change notification settings

panosfol/todo-cli-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todo-cli

A cli for managing todos

You can:

  • Create a new entry
  • Edit your entry(title, description and/or category of entry)
  • Delete your entry
  • Change the status of the entry
  • Fetch and read all the entries

Prerequisites

  1. Rust
  2. Docker
  3. Diesel

Setup

Run a MySqlDatabase from Docker

Run database setup & migrations

diesel setup
diesel migrations generate

Use connect --url command with the url as argument. Read .env.example for the correct format

Example commands

Creating new entry with and without the category given

new
new -c Fun

Reading all the entries filtered throught status and/or category if provided

ls (or list)
ls -c Fun
ls -s Done
ls -c Personal -s Active

Edit the title, the description and/or the category of a specific entry

edit

Delete an entry

del (or delete)

Change the status of an entry, chose from a drop down menu

status 

Connect with the database. This is to be used once after installing the todo-cli

connect --url <string> (string is the url to connect to the database, see setup for instructions)

About

A cli for managing todos using MySql database running with docker

Resources

Stars

Watchers

Forks

Packages

No packages published