Added readme info about --roulette
This commit is contained in:
parent
53d14ff279
commit
c47ff755a5
11
README.md
11
README.md
|
@ -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.
|
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
|
## Usage output
|
||||||
```
|
```
|
||||||
Serves random images from the specified directories.
|
Serves random images from the specified directories.
|
||||||
|
|
Loading…
Reference in New Issue