Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sgreben/gopass-jsonapi-encode
reads JSON on stdin and writes gopass JSONAPI messages on stdout. single binary, no dependencies. linux, osx, windows. #golang
https://github.com/sgreben/gopass-jsonapi-encode
api create gopass import json query
Last synced: 9 days ago
JSON representation
reads JSON on stdin and writes gopass JSONAPI messages on stdout. single binary, no dependencies. linux, osx, windows. #golang
- Host: GitHub
- URL: https://github.com/sgreben/gopass-jsonapi-encode
- Owner: sgreben
- License: unlicense
- Created: 2019-02-14T20:04:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-05T01:43:20.000Z (over 4 years ago)
- Last Synced: 2024-10-13T00:56:26.891Z (24 days ago)
- Topics: api, create, gopass, import, json, query
- Language: Go
- Homepage:
- Size: 3.91 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gopass-jsonapi-encode
Encode JSON as [gopass](https://github.com/gopasspw/gopass) JSONAPI messages.
`gopass-jsonapi-encode` reads JSON on stdin and writes JSONAPI messages on stdout.
## Contents
- [Contents](#contents)
- [Examples](#examples)
- [Get it](#get-it)
- [Using `go get`](#using-go-get)
- [Pre-built binary](#pre-built-binary)### Examples
```sh
$ jq -n '{"type":"query","query":"github.com"}' | gopass-jsonapi-encode | gopass jsonapi listen_["github.com/example"]
``````sh
$ jq -n '{"type":"create","entry_name":"127.0.0.1/admin","login":"admin","password":"hunter2"}' | gopass-jsonapi-encode | gopass jsonapi listen_{"username":"admin","password":"hunter2"}
```## Get it
### Using `go get`
```sh
go get -u github.com/sgreben/gopass-jsonapi-encode
```### Pre-built binary
Or [download a binary](https://github.com/sgreben/gopass-jsonapi-encode/releases/latest) from the releases page, or from the shell:
```sh
# Linux
curl -L https://github.com/sgreben/gopass-jsonapi-encode/releases/download/0.0.3/gopass-jsonapi-encode_0.0.3_linux_x86_64.tar.gz | tar xz# OS X
curl -L https://github.com/sgreben/gopass-jsonapi-encode/releases/download/0.0.3/gopass-jsonapi-encode_0.0.3_osx_x86_64.tar.gz | tar xz# Windows
curl -LO https://github.com/sgreben/gopass-jsonapi-encode/releases/download/0.0.3/gopass-jsonapi-encode_0.0.3_windows_x86_64.zip
unzip gopass-jsonapi-encode_0.0.3_windows_x86_64.zip
```