Update README.md

main
Jesse Laprade 2018-09-08 00:15:21 -04:00 committed by GitHub
parent cf951392ab
commit 9039b2b566
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 28 deletions

View File

@ -18,18 +18,13 @@ An easy-to-use todo list program for people who live on the command line written
* [Windows](https://github.com/m455/rodo#windows) * [Windows](https://github.com/m455/rodo#windows)
* [Mac](https://github.com/m455/rodo#mac) * [Mac](https://github.com/m455/rodo#mac)
* [Usage](https://github.com/m455/rodo#usage) * [Usage](https://github.com/m455/rodo#usage)
* [`init`](https://github.com/m455/rodo#init)
* [`ls`](https://github.com/m455/rodo#ls)
* [`add`](https://github.com/m455/rodo#add)
* [Adding a single-word entry](https://github.com/m455/rodo#adding-a-single-word-entry)
* [Adding a multi-word entry](https://github.com/m455/rodo#adding-a-multi-word-entry)
* [`rm`](https://github.com/m455/rodo#rm)
* [Configuration](https://github.com/m455/rodo#configuring-rodo) * [Configuration](https://github.com/m455/rodo#configuring-rodo)
## Legend ## Legend
* `Items marked like this` are commands for running on the command line `Items marked like this` are commands for running on the command line
* **Items marked like this** are keywords, buttons, variables or specific files/folders
**Items marked like this** are keywords, buttons, variables or specific files/folders
## Platforms ## Platforms
@ -70,7 +65,7 @@ Run `git clone https://github.com/m455/rodo` at the command line if you use Git
#### Creating a wrapper #### Creating a wrapper
Create an empty wrapper file by running `touch ~/bin/rodo` and then add the following contents to it and save: 1. Create an empty wrapper file by running `touch ~/bin/rodo` and then add the following contents to it and save:
``` ```
#!/usr/bin/env bash #!/usr/bin/env bash
@ -79,7 +74,7 @@ racket ~/path/to/rodo.rkt "$@"
**Example**: if you downloaded the project to your **~/downloads/** folder you would change the line **racket ~/path/to/rodo.rkt "$@"** to **racket ~/downloads/rodo/rodo.rkt "$@"** **Example**: if you downloaded the project to your **~/downloads/** folder you would change the line **racket ~/path/to/rodo.rkt "$@"** to **racket ~/downloads/rodo/rodo.rkt "$@"**
Make the **rodo** wrapper file executable by running`chmod u+x ~/bin/rodo` 2. Make the **rodo** wrapper file executable by running`chmod u+x ~/bin/rodo`
### Windows ### Windows
@ -95,33 +90,21 @@ The below examples assume that you have **rodo** [set up](https://github.com/m45
**If you don't**: Navigate to the directory of the **rodo.rkt** file and use `./rodo.rkt <command-from-below>` if the **rodo.rkt** is executable or `racket rodo.rkt <command>` if it is not. **If you don't**: Navigate to the directory of the **rodo.rkt** file and use `./rodo.rkt <command-from-below>` if the **rodo.rkt** is executable or `racket rodo.rkt <command>` if it is not.
### init `init` - Initializes a file in **~/.rodo/todo-list** by default
Initializes a file in **~/.rodo/todo-list** by default
Example: `rodo init` Example: `rodo init`
### ls `ls` - Lists items from the list
Lists items from the list
Example: `rodo ls` Example: `rodo ls`
### add `add` - Adds an entry to the list
Adds an entry to the list Example of adding a single-word entry: `rodo add bread`
#### Adding a single-word entry Example of adding a multi-word entry: `rodo add "go to the bank"`
Example: `rodo add bread` `rm` - Removes an item from the list
#### Adding a multi-word entry
Example: `rodo add "go to the bank"`
### rm
Removes an item from the list
Example: `rodo rm 1` Example: `rodo rm 1`