Added readme info about --roulette

This commit is contained in:
Seednode 2023-09-09 21:27:57 -05:00
parent 53d14ff279
commit c47ff755a5
1 changed files with 11 additions and 0 deletions

View File

@ -89,6 +89,17 @@ If the `-d|--debug` flag is passed, two additional endpoints—`/html` and `/jso
When accessed, these endpoints return the contents of the index, in HTML and JSON formats respectively. This can prove useful when confirming whether the index is generated successfully, or whether a given file is in the index.
## Roulette
If the `--russian` flag is passed, everything functions exactly as you would expect.
That is, files will be deleted after being served. This is not a joke, you *will* lose data.
This uses `os.Remove()` and checks to ensure the specified file is inside one of the paths passed to `roulette`.
That said, this has not been tested to any real extent, so only pass this flag on systems you don't care about.
Enjoy!
## Usage output
```
Serves random images from the specified directories.