CLI tool for finding coding answers instantly by scraping from StackOverflow.
Building from source
Please use Swift version 5.6 or newer.
git clone https://github.com/ilaumjd/howto.git
cd howto
swift build -c release
The executable will be created in the .build/release/
directory.
- Other installation method is coming soon
howto -h
ARGUMENTS:
<query> Coding question you want to ask
OPTIONS:
-e, --engine <engine> Search engine to use (google, bing) (default: google)
-n, --num <num> Number of answers to return (default: 1)
-l, --link Show source link of the answer
-b, --bat Pipe output to bat for syntax highlighting
--version Show the version.
-h, --help Show help information.
You can use bat
for syntax highlighting, please refer the installation guide on their GitHub repository (https://github.com/sharkdp/bat).
- Basic search feature
- Select search engine
-
bat
syntax highlighting - Configuration file
- Answer caching
- Make a separate library
- Get answer from another sources
This project is heavily inspired by howdoi.