Note
A command-line tool written in Go to upload files to a Tigris bucket. If no file is provided, it reads from standard input and names the file using a timestamp. The resulting URL is copied to the clipboard.
Important
To upload a specific file to the bucket:
share filename.txt
To upload from standard input:
echo "your content here" | share
This will create a file named with the current timestamp, e.g., 1730344643.txt
.
awk '{ print $1 }' access.log | sort | uniq -c | sort -nr | head -10 | share
After uploading, the URL of the uploaded file will be copied to the clipboard, and also printed in the terminal.
Explore the docs »
View Demo · Report Bug · Request Feature
Table of Contents
Share is a command-line tool that allows you to upload files to a Tigris bucket. If no file is provided, it reads from standard input and names the file using a timestamp. The resulting URL is copied to the clipboard.
- Upload files to a tigris bucket.
- Overwrite existing files.
- Automatically set expiration to 10 days.
- Copy URL to the clipboard after successful upload.
To get a local copy up and running follow these simple steps.
- Go installed (1.18+ recommended)
- Bucket credentials with appropriate permissions.
- Environment variables configured:
BUCKET_NAME
AWS_REGION
AWS_ENDPOINT_URL_S3
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
DOMAIN
Clone the repository and build the project using the following commands:
git clone https://github.com/berbyte/share.git
cd share
go build -o share
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the Apache-2.0 License. See LICENSE.txt
for more information.
BER Team - @berbyte - [email protected]
Project Link: https://github.com/berbyte/share