Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sioodmy/todo

Simple todo cli program written in rust
https://github.com/sioodmy/todo

cli linux rust todo

Last synced: 5 days ago
JSON representation

Simple todo cli program written in rust

Awesome Lists containing this project

README

        

# todo

A lightweight and super fast cli todo program written in rust under 200 sloc

![gif](todo.gif)

## installation

[AUR package](https://aur.archlinux.org/packages/todo-bin/): `todo-bin`

### Nix Flake

Add `todo.url = "github:sioodmy/todo";` to your inputs. And `inputs.todo.packages."x86_64-linux".todo` to `home.packages`

### other distros

use `cargo build --release` to compile todo and copy `target/release/todo` to `/usr/bin`

## note

todo is still really early in development so be careful or sth

btw i know that my code is not the best but im still learing

## usage

```Usage: todo [COMMAND] [ARGUMENTS]
Todo is a super fast and simple tasks organizer written in rust
Example: todo list
Available commands:
- add [TASK/s]
adds new task/s
Example: todo add "buy carrots"
- edit [INDEX] [EDITED TASK/s]
edits an existing task/s
Example: todo edit 1 banana
- list
lists all tasks
Example: todo list
- done [INDEX]
marks task as done
Example: todo done 2 3 (marks second and third tasks as completed)
- rm [INDEX]
removes a task
Example: todo rm 4
- reset
deletes all tasks
- restore
restore recent backup after reset
- sort
sorts completed and uncompleted tasks
Example: todo sort
- raw [todo/done]
prints nothing but done/incompleted tasks in plain text, useful for scripting
Example: todo raw done
```