lgotm
lgotm is a command for generation LGTM image and generated image is copied to clipboard.
Installation
go get
go get github.com/johnmanjiro13/lgotm
go install (requires Go1.16+)
go install github.com/johnmanjiro13/lgotm@latest
Usage
With Google Custom Search
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.
Configuration
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>