Skip to content

instant coding answers via the command line, inspired by gleitz/howdoi

License

Notifications You must be signed in to change notification settings

pbzweihander/howto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

howto

circleci lib crate.io lib docs.rs bin crate.io License: MIT

Get instant coding answers via the command line. Inspired by gleitz/howdoi

The Library

Usage

let answers = howto(&query).await;
let answer = answers.next().await.unwrap();

println("{}", answer.instruction);

The CLI

Installation

Run with Docker

docker run --rm -it pbzweihander/howto QUERY

Install with Cargo

cargo install howto-cli
howto QUERY

Build yourself

git clone https://github.com/pbzwehiander/howto.git
cd howto/howto-cli
cargo build --release
cargo install --path .
howto QUERY

Usage

howto-cli 0.3.0

USAGE:
    howto-cli [FLAGS] [OPTIONS] [query]...

FLAGS:
    -h, --help       Prints help information
    -f, --full       Whether display the full text of the answer
    -l, --link       Whether display only the answer link
    -V, --version    Prints version information

OPTIONS:
    -n, --num-answers <num-answers>    Number of answers to return [default: 1]
    -p, --position <position>          Select answer in specified position [default: 0]

ARGS:
    <query>...    

About

instant coding answers via the command line, inspired by gleitz/howdoi

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published