mirror of
https://github.com/edu4rdshl/webtail-rs.git
synced 2026-07-17 23:24:50 +00:00
Add USAGE.md
Signed-off-by: Edu4rdSHL <edu4rdshl@protonmail.com>
This commit is contained in:
parent
4f276e98b3
commit
e1c373cd06
1 changed files with 21 additions and 0 deletions
21
docs/USAGE.md
Normal file
21
docs/USAGE.md
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# Usage
|
||||
|
||||
- Watch multiple files from a configuration file:
|
||||
|
||||
```
|
||||
$ webtail-rs -c webtail.conf
|
||||
```
|
||||
|
||||
See the [config example](https://github.com/Edu4rdSHL/webtail-rs/blob/master/examples/webtail.conf).
|
||||
|
||||
- Watch only a file in an specific port:
|
||||
|
||||
```
|
||||
$ webtail-rs -f file.txt -p 9090
|
||||
```
|
||||
|
||||
- Set an different delay in seconds. Delay is the time it takes for the file updates to be displayed in the browser.
|
||||
|
||||
```
|
||||
$ webtail-rs -f file.txt -p 9090 -d 10 # Updates the content every 10 seconds.
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue