This is an intuitive and easy to use CLI todo list application that allows users to add, remove, and list tasks. The application is built in Rust and stores the tasks in a .json file and allows users to interact with the tasks using the terminal. The application is built using the serde
crates to handle command line arguments and serialize and deserialize the data to and from the .json file.
- Clone the repository
- Create a .json file in the root directory of the project to store the data
- Remove the
file_path
using env var and replace it with the path to the .json file - Run
cargo run
to start the application
- Clone the repository
- Run
cargo build --release
to build the binary executable - Add binary to
usr/local/bin
usingsudo mv /PATH/TO/FILE/todolist/target/release/todolist /usr/local/bin/
- Add env var to the .json file path using
export TODO_LIST_FILE_PATH=/PATH/TO/FILE/todolist.json
. Usenano ~/.bash_profile
to add export andsource ~/.bash_profile
to apply changes - Run
todolist
to start the application