linyows / storing

💽 Storing is the cloud storage upload CLI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Storing

The storing is the cloud storage upload CLI. It may support AWS S3 if needed, but for now only GCS is supported.

GitHub Workflow Status GitHub Workflow Status GitHub Release MIT License Go Documentation codecov

Usage

$ go install github.com/linyows/storing@latest
$ storing ./testdata/example.jpg -bucket my-bucket-name -key ~/Downloads/my-project-credentials.yml
Blob ./testdata/example.jpg uploaded: https://storage.cloud.google.com/<my-bucket-name>/<hostname>/testdata/example.jpg

Options

The options are:

  -bucket string
        bucket name
  -key string
        credentials filepath (default "~/.config/storing.json")
  -logrotate
        search today's file for logrotate
  -prefix string
        object prefix (default "<hostname>/<lastdir>/<basename>")
  -timeout int
        timeout seconds for upload (default 50)

Author

linyows

About

💽 Storing is the cloud storage upload CLI.

License:MIT License


Languages

Language:Go 98.0%Language:Makefile 2.0%