Skip to content

nikhilkmr300/scanman

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scanman

scanman is a useful tool for interactively querying man pages using natural language, employing an LLM in the backend to retrieve information.

Here's an example with the grep pattern matching tool:

example

Installation

Set your OPENAI_API_KEY.

export OPENAI_API_KEY='<your-key-here>'

Clone the repository to your machine.

git clone https://github.com/nikhilkmr300/scanman.git

Create a virtual environment and activate it.

python3 -m venv .venv
source .venv/bin/activate

Install the scanman module.

pip install .

Using scanman

Simply type scanman <manpage> in the terminal. For instance, scanman grep. This opens a prompt where you can ask your questions.

To change the manpage, use the :change command.

:change echo

To exit, simply type :exit at the prompt.