https://github.com/micheam/imgcontent
CLI tool for upload images as a web content.
https://github.com/micheam/imgcontent
golang google-cloud-storage upload-images utility-application
Last synced: about 1 year ago
JSON representation
CLI tool for upload images as a web content.
- Host: GitHub
- URL: https://github.com/micheam/imgcontent
- Owner: micheam
- License: mit
- Created: 2019-07-08T09:21:08.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-12-19T07:52:06.000Z (over 1 year ago)
- Last Synced: 2025-02-10T20:25:31.164Z (over 1 year ago)
- Topics: golang, google-cloud-storage, upload-images, utility-application
- Language: Go
- Homepage:
- Size: 94.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# imgcontent

CLI tool for image content management.
Register image files used for blog posts, etc. in the cloud storage.
At the time of initial development, [Google Cloud Storage] is targeted.
## Installation
[Notice] We have not yet distributed prebuilt binaries 😴
get src and build binary with `go get`:
go get github.com/micheam/contentmgmt/cmd/imgcontent
`imgcontent` binary will be installed:
imgcontent help
## Environment values
env | content | note
--|--|--
IMGCONTENT_GCS_CREDENTIALS | Path to Google CloudStorage Credential file (json) | $HOME/.config/imgcontent/your-bucket-999999999999.json
IMGCONTENT_GCS_BUCKET | bucket name | your-bucket
## Usage
```
NAME:
imagecontent - manage img content
USAGE:
imgcontent [global options] command [command options] [arguments...]
VERSION:
0.2.0
AUTHOR:
Michto Maeda
COMMANDS:
upload upload file as a web content
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
```
## Command: Upload
```
NAME:
imgcontent upload - upload file as a web content
USAGE:
imgcontent upload [command options]
OPTIONS:
--format value Display result with specified format. [mkd,html,adoc]
--clipboard, -c Write result to clipboard
```
Upload your content to Google-CloudStorage:
imgcontent upload ./sample.jpeg
Result will print via stdout:
```console
$ imgcontent upload ./sample.jpeg
https://storage.googleapis.com/micheam-image-content/2019/11/17/070934.image.jpg
```
You can specify result format with `--format`:
```console
$ imgcontent upload --format mkd ./sample.jpeg

```
## Author
[micheam](https://github.com/micheam) -
[Google Cloud Storage]: https://cloud.google.com/storage/