All Projects → octobanana → stig

octobanana / stig

Licence: MIT license
A CLI tool for searching GitHub from the terminal.

Programming Languages

C++
36643 projects - #6 most used programming language

Projects that are alternatives of or similar to stig

gitamp
Listen to music generated by events across github.
Stars: ✭ 29 (-19.44%)
Mutual labels:  github-api
gityeller
Stay in the loop of your favorite Github repositories.
Stars: ✭ 18 (-50%)
Mutual labels:  github-api
GithubSquare
Explore the most starred projects , trending developers , popular repositories of any date and face off Github Profiles of your choice.
Stars: ✭ 37 (+2.78%)
Mutual labels:  github-api
gitbot
The most popular Discord dev toolkit with 400k+ users 🚀✨
Stars: ✭ 59 (+63.89%)
Mutual labels:  github-api
Giter
Quickly set up a new remote repository, initialize a local git repository and add the remote repo
Stars: ✭ 38 (+5.56%)
Mutual labels:  github-api
react-graphql-github-vanilla
A React GraphQL example using GitHub's GraphQL API with vanilla JS
Stars: ✭ 69 (+91.67%)
Mutual labels:  github-api
ghapi3
Work In Progress: GitHub API v3.0 implemented in R using the gh package
Stars: ✭ 15 (-58.33%)
Mutual labels:  github-api
octotui
🐙🐱🖥️ GitHub stats in your terminal
Stars: ✭ 202 (+461.11%)
Mutual labels:  github-api
useful-forks.github.io
Improving GitHub's Forks list discoverability through automatic filtering. The project offers an online tool and a Chrome extension.
Stars: ✭ 917 (+2447.22%)
Mutual labels:  github-api
git-issues
A better way to browse GitHub issues.
Stars: ✭ 25 (-30.56%)
Mutual labels:  github-api
github-watchman
Monitoring GitHub for sensitive data shared publicly
Stars: ✭ 60 (+66.67%)
Mutual labels:  github-api
watchub
Be notified of people who followed/unfollowed you and starred/unstarred your repositories
Stars: ✭ 55 (+52.78%)
Mutual labels:  github-api
RxSwift-MVVM-iOS
SwiftMVVM is an sample iOS App written in Swift using the MVVM architecture.
Stars: ✭ 96 (+166.67%)
Mutual labels:  github-api
gh
Control GitHub from your Terminal
Stars: ✭ 28 (-22.22%)
Mutual labels:  github-api
dlang-bot
dlang-bot for automated bugzilla, github, and trello references
Stars: ✭ 20 (-44.44%)
Mutual labels:  github-api
scalafmt-probot
🤖Github bot for checking code formatting with scalafmt
Stars: ✭ 15 (-58.33%)
Mutual labels:  github-api
spotify-playing-readme
A really easy way to display your spotify listening status on READMEs and Website.
Stars: ✭ 21 (-41.67%)
Mutual labels:  github-api
Github-Environment-Cleaner
An interactive script to clean up GitHub environments
Stars: ✭ 101 (+180.56%)
Mutual labels:  github-api
GitHub-LookBook
Look up the GitHub profiles with better UI experience. Build your GitHub Report Card!
Stars: ✭ 18 (-50%)
Mutual labels:  github-api
probot-messages
Probot extension for communicating with repository maintainers
Stars: ✭ 13 (-63.89%)
Mutual labels:  github-api

Stig

A CLI tool for searching GitHub from the terminal.

stig example

About

Stig is a CLI tool for searching GitHub from the terminal. With the ability to sort and filter results, Stig makes it easy to find what you're looking for. Stig can also print out a repositories README.md to stdout, so you can quickly learn more about a project.

Features

  • search GitHub from the terminal
  • use flags and options to filter the results
  • print the readme of a specified repo to stdout

Result Breakdown

A typical search result item will look like the following:

- owner
|          - repo
|          |    - stars
|          |    |   - forks
|          |    |   |  - issues
|          |    |   |  |  - language
|          |    |   |  |  |     - last updated
|          |    |   |  |  |     |  - summary
|          |    |   |  |  |     |  |
octobanana/stig *12 <3 !4 [C++] 5h
  A CLI tool for searching GitHub from the terminal.

A forked repository will show a > symbol, instead of the default < symbol.

The last updated symbols are mapped to the following:

s : seconds
m : minutes
h : hours
D : days
W : weeks
M : months
Y : years

At the end of the results, a summary will be shown:

Summary Breakdown

- current results
|   - total results
|   |            - current page
|   |            | - total pages
|   |            | |          - requests remaining
|   |            | |          | - requests limit
|   |            | |          | |
1-5/81 results | 1/17 pages | 9/10 limit

Terminal Compatibility

A terminal emulator that supports ansi escape codes and true color is required when colored output is enabled. The majority of the popular terminal emulators should support both. While having the colored output enabled provides the best experience, it can be adjusted using the --color option, taking either on, off, or auto as inputs, with auto being the default value.

GitHub Token

By default, the GitHub API allows up to 10 search queries per minute. To extend the limit to 30 search queries per minute, you can pass a GitHub token with the --token option.

For more information regarding creating a new personal access token, refer to the following GitHub help article.

GitHub Enterprise Compatibility

It is possible to use a custom API endpoint for compatibility with GitHub Enterprise installations using the --host option. The host should be formatted as, subdomain.domain.tld. It's expected that the endpoint is served over HTTPS on port 443.

Important

When using the --host option, only use the --token option with a trusted custom API endpoint. If an incorrect host is passed along with a token, it would be wise to immediately revoke the token and create a new one.

Examples

# query 'stig' showing '20' results from page '1'
$ stig --query 'stig' --number 20 --page 1

# query 'stig' with filter 'language:cpp'
$ stig --query 'stig' --filter 'language:cpp'

# query 'stig' and pipe into less
$ stig --query 'stig' | less

# query 'all' sorted by 'stars' with filter 'language:js'
$ stig --query '' --sort 'stars' --filter 'language:js'

# query 'http server' with filters 'language:cpp' and 'stars:>10'
$ stig --query 'http server' --filter 'language:cpp stars:>10'

# output the README.md for 'octobanana/stig' on default branch
$ stig --readme 'octobanana/stig'

# output the README.md for 'octobanana/stig' on branch 'master'
$ stig --readme 'octobanana/stig/master'

# output the README.md for 'octobanana/stig' on default branch and pipe into less
$ stig --readme 'octobanana/stig' | less

# output the program help
$ stig --help

# output the program version
$ stig --version

Build

Environment

  • Linux (supported)
  • BSD (untested)
  • macOS (untested)

Requirements

  • C++17 compiler
  • Boost >= 1.67
  • OpenSSL >= 1.1.0
  • CMake >= 3.8

Dependencies

  • ssl (libssl)
  • crypto (libcrypto)
  • pthread (libpthread)
  • boost (libboost_system)

Libraries:

  • my belle library, for making HTTPS requests, included as ./src/ob/belle.hh
  • my parg library, for parsing CLI args, included as ./src/ob/parg.hh
  • nlohmann's json library, for working with JSON, included as ./src/lib/json.hh

The following shell command will build the project in release mode:

./build.sh

To build in debug mode, run the script with the --debug flag.

Install

The following shell command will install the project in release mode:

./install.sh

To install in debug mode, run the script with the --debug flag.

License

This project is licensed under the MIT License.

Copyright (c) 2018-2019 Brett Robinson

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].