d1egoaz / github-searcher

Github code search to return only a single list of repositories

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Repo Searcher

Given a query, it'll return the repositories where the code source matches the query.

Usage

Create a Github token (personal or oauth)

https://help.github.com/en/articles/creating-a-personal-access-token-for-the-command-line Then you can export the token via a env variable called TOKEN:

.token.sh

#!/usr/bin/env sh
export TOKEN=mytoken

Build the tool

make build

Run

source .token.sh && github-searcher --query "sarama language:go org:Shopify"

or you can also provide the token via parameters, but it'll be in your commands history ¯_(ツ)_/¯

source .token.sh && ./github-searcher --query "sarama language:go org:Shopify"
--token mytoken

About

Github code search to return only a single list of repositories


Languages

Language:Go 82.3%Language:Makefile 17.7%