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:
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.gitCreate a virtual environment and activate it.
python3 -m venv .venv
source .venv/bin/activateInstall the scanman module.
pip install .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 echoTo exit, simply type :exit at the prompt.
