2018-03-12 14:00:41 +00:00
# rodo
2018-04-18 04:12:32 +00:00
2020-04-12 15:22:46 +00:00
rodo is a todo-list program for the command line.
2019-07-11 02:21:54 +00:00
2019-03-02 15:49:45 +00:00
# Screenshot
2020-07-23 00:31:49 +00:00
![An animated GIF of a user adding and removing tasks on their todo list ](images/screenshot.gif )
2018-12-11 14:12:36 +00:00
2019-04-30 01:35:44 +00:00
# Table of Contents
2020-06-06 23:25:51 +00:00
- [Disclaimer ](#disclaimer )
2020-04-05 20:43:45 +00:00
- [Conventions used in this document ](#conventions-used-in-this-document )
2020-01-16 17:54:49 +00:00
- [Platforms ](#platforms )
- [Requirements ](#requirements )
2020-03-27 00:20:01 +00:00
- [Quick start ](#quick-start )
2020-06-06 23:25:51 +00:00
- [Downloading rodo ](#downloading-rodo )
- [Downloading rodo using git ](#downloading-rodo-using-git )
- [To download rodo using git ](#to-download-rodo-using-git )
- [Installing rodo ](#installing-rodo )
- [Installing rodo globally ](#installing-rodo-globally )
- [To install rodo globally ](#to-install-rodo-globally )
- [Installing rodo locally ](#installing-rodo-locally )
- [To install rodo locally ](#to-install-rodo-locally )
- [Installing rodo to a custom directory ](#installing-rodo-to-a-custom-directory )
- [To install rodo to a custom directory ](#to-install-rodo-to-a-custom-directory )
- [Uninstalling rodo ](#uninstalling-rodo )
- [Uninstalling rodo globally ](#uninstalling-rodo-globally )
- [To uninstall rodo globally ](#to-uninstall-rodo-globally )
- [Uninstalling rodo locally ](#uninstalling-rodo-locally )
- [To uninstall rodo locally ](#to-uninstall-rodo-locally )
2020-01-06 21:05:52 +00:00
- [Using rodo ](#using-rodo )
2020-07-14 21:04:03 +00:00
- [Initializing rodo ](#initializing-rodo )
2020-07-14 21:13:39 +00:00
- [To initialize rodo ](#to-initialize-rodo )
2020-02-03 04:50:34 +00:00
- [Showing the help message ](#showing-the-help-message )
- [To show the help message ](#to-show-the-help-message )
- [Displaying your list ](#displaying-your-list )
- [To display your list ](#to-display-your-list )
- [Adding an item to your list ](#adding-an-item-to-your-list )
- [To add an item to your list ](#to-add-an-item-to-your-list )
- [Removing an item from your list ](#removing-an-item-from-your-list )
- [To remove an item from your list ](#to-remove-an-item-from-your-list )
2019-06-04 02:01:34 +00:00
- [List of commands ](#list-of-commands )
- [Usage examples ](#usage-examples )
2019-04-30 01:35:44 +00:00
2020-06-06 23:25:51 +00:00
# Disclaimer
2020-03-15 03:20:25 +00:00
2020-06-06 23:25:51 +00:00
This is a hobby project I built for myself to keep track of todos
related to my hobbies.
2020-03-29 19:49:23 +00:00
2020-06-06 23:25:51 +00:00
I take no responsibility for anything that rodo deletes.
Backup anything you don't want deleted.
2019-11-11 19:00:50 +00:00
2020-04-05 20:43:45 +00:00
# Conventions used in this document
2019-11-11 19:00:50 +00:00
2020-05-09 20:08:02 +00:00
* **Note**: Notes signify additional information
* **Tip**: Tips signify an alternate procedure for completing a step
2020-07-07 15:45:05 +00:00
* **Warning**: Warnings signify that damage may occur
2020-05-09 20:08:02 +00:00
* **Example**: Examples provide a visual reference of how a procedure would be carried out in the real world
* `Inline code` : Inline code signifies package names, filenames, or commands
* ```Code block```: Code blocks signify file contents
2019-11-11 19:00:50 +00:00
2020-01-16 17:54:49 +00:00
# Platforms
2018-05-20 02:03:00 +00:00
2019-11-11 19:00:50 +00:00
Below is a list of platforms that rodo can run on:
2019-02-14 20:09:47 +00:00
2019-06-08 14:03:04 +00:00
* GNU/Linux
2020-06-06 23:25:51 +00:00
* Windows (Using Windows Subsystem for Linux)
* macOS (Using [Homebrew ](https://brew.sh/ ))
2018-09-08 01:01:00 +00:00
2020-01-16 17:54:49 +00:00
# Requirements
2019-06-08 14:03:04 +00:00
2020-01-16 17:54:49 +00:00
The following items must be downloaded and installed before you can use rodo:
2018-09-08 01:01:00 +00:00
2019-11-02 18:40:38 +00:00
* Racket: [https://racket-lang.org/ ](https://racket-lang.org/ )
2020-07-26 19:16:40 +00:00
* rodo's source code: [https://notabug.org/m455/rodo ](https://notabug.org/m455/rodo )
2019-04-30 01:35:44 +00:00
2020-06-06 23:25:51 +00:00
# Quick start
This section is for users who are familiar with git, a Unix-like command line environment, or
scripting.
1. Make sure [Racket ](https://racket-lang.org/ ) is installed
2020-07-27 16:29:56 +00:00
2. `git clone -b main https://notabug.org/m455/rodo`
2020-06-06 23:25:51 +00:00
3. `cd rodo`
4. `sudo make install-global`
5. `rodo`
2019-02-25 03:36:32 +00:00
2020-06-06 23:25:51 +00:00
**Note**: To uninstall, run `sudo make uninstall-global`
2018-10-20 01:36:52 +00:00
2020-06-06 23:25:51 +00:00
* `rodo help` - Displays the help message
* `rodo add "your task here"` - Adds the message inside of quotation marks to your todo list
* `rodo ls` - Displays your todo list
* `rodo rm 2` - Removes the third item from your list. (The list starts at 0)
2019-02-25 03:57:55 +00:00
2020-06-06 23:25:51 +00:00
**Note**: You may need to run `rodo ls` to see which number corresponds to which item in your list before running `rodo rm <number>`
2019-01-31 14:46:14 +00:00
2020-06-06 23:25:51 +00:00
# Downloading rodo
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
rodo's source code exists in a public git repository. This makes
accessing the code convenient, because you don't need to sign in or
register for an account to download it.
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
## Downloading rodo using git
You can use tools such as `git` to download rodo's source code. You
will need the source code to install rodo.
### To download rodo using git
2019-01-31 14:46:14 +00:00
2020-07-26 19:16:40 +00:00
1. Run `git clone https://notabug.org/m455/rodo`
2019-01-31 14:46:14 +00:00
2020-06-06 23:25:51 +00:00
**Note**: This will create a `rodo` directory in your current directory.
2020-03-27 00:20:01 +00:00
2020-06-06 23:25:51 +00:00
# Installing rodo
2020-03-27 00:20:01 +00:00
2020-06-06 23:25:51 +00:00
You can either install rodo globally or locally on your system. A global installation allows all users on a machine to use rodo, while a local installation only allows one user to use rodo.
See the options below for installing rodo:
* [Installing rodo globally ](#installing-rodo-globally )
* [Installing rodo locally ](#installing-rodo-locally )
2020-07-07 15:45:05 +00:00
* [Installing rodo to a custom directory ](#installing-rodo-to-a-custom-directory )
2020-06-06 23:25:51 +00:00
## Installing rodo globally
This option will install rodo into `/usr/local/bin/` .
This section assumes you have [downloaded rodo ](#downloading-rodo ).
### To install rodo globally
1. Run `cd rodo`
2. Run `sudo make install-global`
## Installing rodo locally
This option will install rodo into `~/.local/bin/` .
This section assumes you have [downloaded rodo ](#downloading-rodo ).
### To install rodo locally
1. Run `cd rodo`
2. Run `sudo make install-local`
## Installing rodo to a custom directory
If you wish to have rodo exist elsewhere on your system, you can also
build a single-file executable. Building a single-file executable
allows you to place the executable in convenient places on your
system, such as a directory on your `$PATH` .
This section assumes you have [downloaded rodo ](#downloading-rodo ).
### To install rodo to a custom directory
2020-07-07 15:24:23 +00:00
**Warning**: You will have to manually uninstall custom installations
2020-06-06 23:25:51 +00:00
1. Run `cd rodo`
2020-07-11 22:52:03 +00:00
2. Run `make install-custom location=~/path/to/custom/location`
2020-07-16 02:33:01 +00:00
**Example**: In step 2., you could run `make install-custom location=~/bin/`
2020-06-06 23:25:51 +00:00
# Uninstalling rodo
2020-03-27 00:20:01 +00:00
2020-06-06 23:25:51 +00:00
Depending on your installation method, you can uninstall a global or local installation of rodo.
2020-03-27 00:20:01 +00:00
2020-06-06 23:25:51 +00:00
See the options below for uninstalling rodo:
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
* [Uninstalling rodo globally ](#uninstalling-rodo-globally )
* [Uninstalling rodo locally ](#uninstalling-rodo-locally )
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
## Uninstalling rodo globally
2019-01-31 14:46:14 +00:00
2020-06-06 23:25:51 +00:00
This option will remove the `rodo` executable from `/usr/local/bin/` .
2020-03-22 03:16:56 +00:00
2020-06-06 23:25:51 +00:00
This section assumes you have [downloaded rodo ](#downloading-rodo ).
2020-03-22 03:16:56 +00:00
2020-06-06 23:25:51 +00:00
### To uninstall rodo globally
2020-03-22 03:16:56 +00:00
2020-06-06 23:25:51 +00:00
1. Run `cd rodo`
2. Run `sudo make uninstall-global`
2019-01-31 14:46:14 +00:00
2020-06-06 23:25:51 +00:00
## Uninstalling rodo locally
2018-11-12 02:56:10 +00:00
2020-06-06 23:25:51 +00:00
This option will remove the `rodo` executable from `~/.local/bin/` .
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
This section assumes you have [downloaded rodo ](#downloading-rodo ).
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
### To uninstall rodo locally
2019-11-11 19:00:50 +00:00
2020-06-06 23:25:51 +00:00
1. Run `cd rodo`
2. Run `sudo make uninstall-local`
2019-11-11 19:00:50 +00:00
2020-01-06 21:05:52 +00:00
# Using rodo
2020-03-15 03:27:48 +00:00
This section will teach you how to use rodo's commands.
2020-03-15 03:24:25 +00:00
2020-06-06 23:25:51 +00:00
This section assumes you have [installed rodo ](#installing-rodo ).
2020-01-06 21:05:52 +00:00
2020-07-14 21:04:03 +00:00
## Initializing rodo
2020-07-23 03:35:15 +00:00
Before using rodo, you will need to initialize it. This means rodo will create a `~/.rodo` file.
2020-07-14 21:04:03 +00:00
### To initialize rodo
1. Run `rodo init`
2. Choose `y`
2020-02-03 04:52:29 +00:00
## Showing the help message
2020-01-06 21:05:52 +00:00
2020-03-22 03:16:56 +00:00
The help message will provide a list of available commands. This is list useful in case you forget
the name of a command or how to use a command.
2020-01-06 21:05:52 +00:00
2020-02-03 04:52:29 +00:00
### To show the help message
2020-01-06 21:05:52 +00:00
2020-06-12 04:46:44 +00:00
1. Run `rodo help`
2020-01-06 21:05:52 +00:00
2020-02-03 04:52:29 +00:00
## Displaying your list
2020-01-06 21:05:52 +00:00
2020-07-23 03:38:55 +00:00
Displaying your list will allow you to view the items you have added to your list.
2020-03-15 03:27:48 +00:00
You will notice numbers beside the items in your list.
**Note**: These numbers are useful references for when you want to remove items from your list. For
more information, see the [Removing an Item from Your List ](#removing-an-item-from-your-list ) topic.
2020-01-06 21:05:52 +00:00
2020-02-03 04:52:29 +00:00
### To display your list
2020-01-06 21:05:52 +00:00
1. Run `rodo ls`
2020-02-03 04:52:29 +00:00
## Adding an item to your list
2020-01-06 21:05:52 +00:00
Adding an item to your list will save it to a text file to access later.
2020-02-03 04:52:29 +00:00
### To add an item to your list
2020-01-06 21:05:52 +00:00
1. Run `rodo add "this is an example of an item using double quotation marks"`
2020-02-03 04:52:29 +00:00
## Removing an item from your list
2020-01-06 21:05:52 +00:00
When removing an item from your list, you can reference the numbers beside each
item when [Displaying Your List ](#displaying-your-list ). You can use these
numbers when removing an item from your list.
2020-02-03 04:52:29 +00:00
### To remove an item from your list
2020-01-06 21:05:52 +00:00
1. Run `rodo rm 1`
2020-05-09 20:08:02 +00:00
**Note 1**: The "1" in the procedure above will remove the first item in your
2020-01-06 21:05:52 +00:00
list.
2020-05-09 20:08:02 +00:00
**Note 2**: You may need to run `rodo ls` first to see which numbers correspond
2020-01-06 21:05:52 +00:00
with which item in your list.
2019-04-30 01:35:44 +00:00
# List of commands
2018-04-18 04:04:10 +00:00
2019-11-02 18:40:38 +00:00
This section lists and describes rodo's commands.
2018-04-10 00:27:01 +00:00
2020-07-23 03:47:25 +00:00
* `init` intializes the `~/.rodo` file
2020-06-12 04:46:44 +00:00
* `help` displays the help message
2019-11-02 18:40:38 +00:00
* `ls` displays your list
* `add` adds an item to your list
* `rm` removes an item from your list
2018-04-13 06:14:51 +00:00
2019-04-30 00:31:36 +00:00
# Usage examples
2018-04-10 00:27:01 +00:00
2020-07-23 03:47:25 +00:00
`rodo init`
2020-06-12 04:46:44 +00:00
`rodo help`
2019-03-13 03:43:15 +00:00
2018-12-11 13:53:32 +00:00
`rodo ls`
2018-09-08 04:30:28 +00:00
2019-11-02 18:40:38 +00:00
`rodo add "this is an item"`
2018-09-08 04:30:28 +00:00
2019-11-11 19:00:50 +00:00
`rodo rm 1`
2018-04-18 04:04:10 +00:00