githubsearch

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

githubsearch

Build Status Coverage Status Go Report Card License Tag

Introduction

GitHub Search is a GitHub search tool written in Go.

Feature

GitHub Search supports:

Usage

usage: githubsearch --api=API --config=CONFIG --output=OUTPUT --qualifier=QUALIFIER --search=SEARCH [<flags>]

GitHub Search

Flags:
      --help                 Show context-sensitive help (also try --help-long
                             and --help-man).
      --version              Show application version.
  -a, --api=API              API type, format: graphql or rest
  -c, --config=CONFIG        Config file, format: .json
  -o, --output=OUTPUT        Output file, format: .json
  -q, --qualifier=QUALIFIER  Qualifier list, format:
                             {qualifier}:{query},{qualifier}:{query},...
  -s, --search=SEARCH        Search list, format: code:{text} or repo:{text}

-q/--qualifier: See "Searching on GitHub" for a complete list of available qualifiers, their format, and an example of how to use them.

Setting

GitHub Search parameters can be set in the directory config.

An example of configuration in search.json:

{
  "rest": {
    "order": "desc",
    "page": 2,
    "per_page": 10,
    "sort": "stars"
  }
}

Running

githubsearch \
  --api="rest" \
  --config="config/search.json" \
  --output="output.json" \
  --qualifier="in:file,language:go,repo:githubsearch,user:craftslab" \
  --search="code:runSearch"
githubsearch \
  --api="rest" \
  --config="config/search.json" \
  --output="output.json" \
  --qualifier="language:go,user:craftslab" \
  --search="repo:githubsearch"

License

Project License can be found here.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL