mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-21 20:09:48 -05:00
docs(readme): prefix commands with '$'
This commit is contained in:
parent
faedf63ebf
commit
6c10d381b4
1 changed files with 4 additions and 4 deletions
|
@ -57,7 +57,7 @@ $ rpaste -
|
||||||
#### Expiration
|
#### Expiration
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -F "file=@x.txt" -H "expire:10min" "<server_address>"
|
$ curl -F "file=@x.txt" -H "expire:10min" "<server_address>"
|
||||||
```
|
```
|
||||||
|
|
||||||
(supported units: `ns`, `us`, `ms`, `sec`, `min`, `hours`, `days`, `weeks`, `months`, `years`)
|
(supported units: `ns`, `us`, `ms`, `sec`, `min`, `hours`, `days`, `weeks`, `months`, `years`)
|
||||||
|
@ -65,19 +65,19 @@ curl -F "file=@x.txt" -H "expire:10min" "<server_address>"
|
||||||
#### One Shot
|
#### One Shot
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -F "oneshot=@x.txt" "<server_address>"
|
$ curl -F "oneshot=@x.txt" "<server_address>"
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Cleaning Up Expired Files
|
#### Cleaning Up Expired Files
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
find upload/ -maxdepth 2 -type f -iname "*.[0-9]*" -exec rm -v {} \;
|
$ find upload/ -maxdepth 2 -type f -iname "*.[0-9]*" -exec rm -v {} \;
|
||||||
```
|
```
|
||||||
|
|
||||||
#### URL Shortening
|
#### URL Shortening
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
curl -F "url=https://example.com/some/long/url" "<server_address>"
|
$ curl -F "url=https://example.com/some/long/url" "<server_address>"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
|
|
Loading…
Reference in a new issue