Let me google that for you CLI
This is a lmgtfy CLI written in Go which makes it easy to create Let me google that for you links.
Install
MacOS
brew install Knappek/tap/lmgtfy
Other OS with Go installed
Download with
go get github.com/Knappek/lmgtfy
and install lmgtfy
CLI by navigating to $GOPATH/src/github.com/Knappek/lmgtfy/
and run
go install
In order to use lmgtfy
make sure $GOPATH/bin
is in your PATH.
Without Go installed
You can simply download the latest release from the release page, extract it and move the binary to your path.
Usage
In a shell, simply type
lmgtfy -g "What is Let me google that for you?"
which will print http://lmgtfy.com/?q=What+is+Let+me+google+that+for+you%3F and, if you are on Linux or MacOS, will directly copy it to your clipboard.
Shorten Url
The lmgtfy-Url is very obvious and you may want to hide this. Simply add a -s
or -shorten
, i.e.
lmgtfy -g "What is Let me google that for you?" -s
which will print http://tinyurl.com/3so56ko and, if you are on Linux or MacOS, will directly copy it to your clipboard.
Next Steps
- build for windows
- CI with proper tests
- code lint
- code coverage