Crates.io | todors |
lib.rs | todors |
version | 0.10.7 |
source | src |
created_at | 2023-04-16 13:45:19.272972 |
updated_at | 2024-11-02 12:15:50.619258 |
description | todo app with CLI, REST & gRPC interfaces |
homepage | |
repository | https://github.com/meysam81/todors |
max_upload_size | |
id | 840596 |
size | 167,164 |
TODO app, mainly for a practical learning experience of Rust
cargo install todors
You can also head over to the GitHub release page and download the binary for your platform.
docker pull meysam81/todors
# or
docker pull ghcr.io/meysam81/todors
The usage is as follows:
todors serve grpc -p 50051 -H 127.0.0.1
todors serve http -p 8000 -H 127.0.0.1
# Both port & host are optional, but ipv6 can also be used
todors serve http -H ::1
todors create "My first todo"
todors list
todors update 1 --title "My first todo updated"
todors update 1 --done
todors update 1 --undone
todors delete 1
todors completion bash | sudo tee /etc/bash_completion.d/todors
todors serve http
todors serve grpc
# exposed at localhost:50051
Usage: todors <COMMAND>
Commands:
serve Serve either the gRPC or REST over HTTP server
create Create a new TODO with a title
delete Delete a TODO by ID
list List all TODOs
update Update a TODO by ID
completion Generate shell completion
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version