Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Tomohiro/gyazo-cli

:camera: Gyazo command-line uploader
https://github.com/Tomohiro/gyazo-cli

cli go gyazo

Last synced: 2 months ago
JSON representation

:camera: Gyazo command-line uploader

Awesome Lists containing this project

README

        

Gyazo CLI
================================================================================

[![GitHub Releases](https://img.shields.io/github/release/tomohiro/gyazo-cli.svg?style=flat-square)](https://github.com/tomohiro/gyazo-cli/releases)
[![Build Status](https://img.shields.io/travis/com/tomohiro/gyazo-cli.svg?style=flat-square)](https://travis-ci.com/tomohiro/gyazo-cli)
[![Go Report Card](https://goreportcard.com/badge/github.com/tomohiro/gyazo-cli?style=flat-square)](https://goreportcard.com/report/github.com/tomohiro/gyazo-cli)
[![MIT License](http://img.shields.io/badge/license-MIT-blue.svg?style=flat-square)](https://github.com/tomohiro/gyazo-cli/blob/master/LICENSE)

Gyazo command-line uploader

Usage
--------------------------------------------------------------------------------

```
$ gyazo-cli [PATH]
```

### Example

#### Take a screenshot and then upload

NOTE: this feature is not available on Windows. ([ImageMagick](http://www.imagemagick.org/script/index.php) is required for Linux users)

```
$ gyazo-cli
```

#### Uploading a specific image

```
$ gyazo-cli ~/Desktop/image.png
http://gyazo.com/f1380d79593d2aaa0fcd412511f3d3e5
```

Configuration
--------------------------------------------------------------------------------

### Use Gyazo API client token

Set the access token to environment variable like this:

```
export GYAZO_ACCESS_TOKEN="YOUR GYAZO API ACCESS TOKEN"
```

### Use self-hosted Gyazo server

Set the server URL to environment variable like this:

```
export GYAZO_SERVER_URL="http://my-gyazo.example.com"
```

Installation
--------------------------------------------------------------------------------

### Get the stable binary

Go to the [release page](https://github.com/tomohiro/gyazo-cli/releases) and download a zip file.

### go get

Install to `$GOPATH/bin`:

```
$ GO111MODULE=off go get -u github.com/tomohiro/gyazo-cli
```

Contributing
--------------------------------------------------------------------------------

See [CONTRIBUTING](CONTRIBUTING.md) guideline.

LICENSE
--------------------------------------------------------------------------------

© 2014 - 2019 Tomohiro Taira.

This project is licensed under the MIT license. See [LICENSE](LICENSE) for details.