Skip to content

Command-line interface tool that allows you to fetch code snippets directly from the Grepper API.

License

Notifications You must be signed in to change notification settings

h33n0k/grepper-cli

Repository files navigation

Grepper CLI

grepper-cli is a command-line tool for fetching and displaying code snippets from the Grepper API. Designed for developers who want quick access to solutions without leaving their terminal.

Demo

demo

Requirements

Installation

See the Releases section.


Manage Configuration

grepper config # output current config
grepper config [param] # output current config param
grepper config [param] [value] # define config param value

Example :

grepper config api_key <your_api_key>

Fetch Answers

grepper # interactive
grepper -q 'http status codes' # specified args
echo convert string to integer in python | grepper # piped input

Options :

-q, --query # [string] your grepper query
-l, --limit # [number] answers limit
-f, -format # [string] output format (pretty, json)
--nocache # [boolean] do not use cached results nor previous prompts

Feedback

  • If you get an issue or come up with an awesome idea, don't hesitate to open an issue in github.
  • If you think this plugin is useful or cool, consider rewarding it a star.

LICENSE

The project is licensed under a MIT license. See LICENSE file for details.

About

Command-line interface tool that allows you to fetch code snippets directly from the Grepper API.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published