github.com/carlmjohnson/haystack

Pinboard search CLI


License
MIT
Install
go get github.com/carlmjohnson/haystack

Documentation

Haystack GoDoc Go Report Card

Pinboard search CLI

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN="$(pwd)" go install github.com/carlmjohnson/haystack@latest

Screenshots

$ haystack -h
haystack - a Pinboard search client

usage:

        haystack [options] <tags>...

All options may be set by an environmental variable, like $PINBOARD_AUTH_TOKEN.

Options:

  -auth-token token
        auth token, see https://pinboard.in/settings/password
  -password string
        password
  -t    shortcut for -tag-search
  -tag-search
        search for similar tags, rather than saved pages
  -timeout duration
        timeout for query (default 5s)
  -user string
        username

$ haystack -t sql
"SQL": 32
"SQLite": 7
"Yesql": 7
"MySQL": 2

$ haystack MySQL
Title: hyperpolyglot.org
Date: Mar. 7, 2017 8:22am
Tags: MySQL Postgres database SQLite SQL
URL: http://hyperpolyglot.org/db

Title: pgloader
Date: May. 2, 2016 4:04pm
Tags: database Postgres MySQL command_line_tools
URL: http://pgloader.io/