Crates.io | pastebin_gen |
lib.rs | pastebin_gen |
version | 2.0.0 |
source | src |
created_at | 2022-02-02 21:36:22.647966 |
updated_at | 2022-02-20 00:39:13.821294 |
description | A command-line interface for writing PasteBin easily |
homepage | https://github.com/HicaroD/PasteBinGen |
repository | https://github.com/HicaroD/PasteBinGen |
max_upload_size | |
id | 525876 |
size | 38,709 |
A command-line interface for creating pastes on PasteBin easily.
Feature | Status |
---|---|
Set syntax highlighting | Done |
Set file name | Done |
cargo install pastebin_gen
API key of PasteBin.
If it's the first time you're using the program, you should configure the API key of PasteBin. In order to do that, you need to create an account on PasteBin. After that, go to the API's documentation and find the section "Your Unique Developer API Key". Copy the key above and set the api key with the flag api-key
alongside with the path of the file that you want to upload to PasteBin.
If you run the program, but the API key is not avaiable, the program will crash.
Paste format options
If you want to see the format options for enabling syntax highlighting, see that list. If you don't set any formating option, it will have no syntax highlighting.
pastebin_gen --api-key YOUR_API_KEY --path path/to/file --paste-format python --paste-name my_file_name
WARNING: --api-key
is not necessary unless you're setting it for the first time or you want to replace the current one. Additionally, --paste-name
and paste-format
are optional flags.
The usage is pretty straightforward. However, if you need help, try to run pastebin_gen --help
.
Maximum 10 pastes per 24h
The PasteBin's API does not allow a free user to create more than 10 folders within the 24 hour limit.
This project is licensed under the MIT license.