DEV Community

Janvier Byiringiro
Janvier Byiringiro

Posted on

Stack Overflow Command Line Search Tool

Why StackOverflow?

StackOverflow has been around for many years and it has been really a powerful tool for my every technical role. So i decide to make this site available for my use in terminal. For my current role I get to work with server Maintenance, Monitoring and Backup. This will be a great search tool when working with remote servers and you don't have to open a browser to search for errors fix ideas.

Finished Tool: https://github.com/jenzzly/jenzzly

1. Stack Overflow API customization

You will need to customize your search to your liking on this ' https://api.stackexchang.com/docs/answers' remember there is a limit on how much to hit the request.

Example: https://api.stackexchange.com/2.2/answers?order=desc&sort=activity&site=stackoverflow

2. Ruby Script

Here is my ruby script but remember your can write your own as well and change however you want it.

GitHub logo jenzzly / jenzzly

Search on stack overflow script

A passionate backend and frontend developer with an IT Support Engineer Background.

jenzzly

jenzzly

Connect with me:

jenzzly byjanvier

Languages and Tools:

angular aws bash bootstrap bulma chartjs css3 docker express firebase flask gatsby git grafana heroku ifttt java javascript jekyll jenkins jest kubernetes linux mysql nginx nodejs nuxtjs oracle photoshop php postgresql postman python rabbitMQ rails ruby selenium spring sqlite vuejs vuepress

jenzzly

Β jenzzly






3. Publish as Gem CLI

I chose to publish as gem mostly because it was easier and I like ruby anyway. For creating a gem please follow this repo below.

4. Usage

Once done with Installation you can use your new tool like this: Mine is called "jenzzly" and my search will be
"jenzzly your_key_word_search_text".

Alt Text

Results

Alt Text

Top comments (0)