lgotm is a command for generation LGTM image and generated image is copied to clipboard.
# tap and install
brew tap johnmanjiro13/tap
brew install lgotm
# install directory
brew install johnmanjiro13/tap/lgotm
go get github.com/johnmanjiro13/lgotm
go install github.com/johnmanjiro13/lgotm@latest
lgotm query <query>
lgotm query searches images by Google Custom Search API. Therefore, you need to get api key and engine id of custom search api.
lgotm can be customized with a configuration file.
The location of the file is $HOME/.config/lgotm/config
by default.
A default configuration file can be created with the generate_config_file
sub sommand.
lgotm generate_config_file
Also, lgotm can be customized with environment variables instead of the file like below.
API_KEY=<your-api-key> ENGINE_ID=<your-engine-id> lgotm query <query>