-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from SAMAD101/issue8
Improved readme
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,35 @@ | |
<hr> | ||
|
||
paste.py 🐍 - A pastebin written in python. | ||
|
||
<hr> | ||
|
||
## Uasge: | ||
|
||
### Uisng CLI | ||
> cURL is required to use the CLI. | ||
- Paste a file named 'file.txt' | ||
|
||
```bash | ||
curl -X POST -F "[email protected]" https://paste.fosscu.org/file | ||
``` | ||
|
||
- Paste from stdin | ||
|
||
```bash | ||
echo "Hello, world." | curl -X POST -F "file=@-" https://paste.fosscu.org/file | ||
``` | ||
|
||
- Delete an existing paste | ||
|
||
```bash | ||
curl -X DELETE https://paste.fosscu.org/paste/<id> | ||
``` | ||
|
||
### Using the web interface: | ||
[Go here](https://paste.fosscu.org/web) | ||
|
||
<hr> | ||
|
||
For info API usage and shell functions, see the [website](https://paste.fosscu.org). |