Find information about your favorite book without leaving the comfort of your terminal. Powered by hardcover.app
# Arch Linux
yay -S bookbrowse
Clone the GitHub repository:
git clone https://github.com/hatredholder/bookbrowse
cd
into the cloned repository:
cd bookbrowse
Install it with go
:
go install .
Before you can get your hands onto using this wonderful project, you must first get a Hardcover API key, which requires creating an account.
After you sign into your account, navigate to the Hardcover API Access page, from where you copy your key (including the "Bearer" keyword).
Set the HARDCOVER_API_KEY
environment variable.
-h
,--help
: help for bookbrowse-t
,--templates
: choose template for output format-v
,--version
: display current version
bookbrowse supports templates. When bookbrowse is ran following directories and files are created inside ~/.config
directory:
bookbrowse
├── default.tmpl
└── markdown.tmpl
default.tmpl
template is used by default, to use other templates --template
flag has to be passed:
bookbrowse --template markdown "Fear and Loathing in Las Vegas" > "Fear and Loathing in Las Vegas".md
.tmpl
extension must be ommited when choosing a template.
commify
: turn slice array into comma-separated listtruncate
: truncate string ellipticallyformatRating
: n/10 stars format
All functions can be found in internal/templates/functions.go
If you encounter any problems, get any ideas on what should this project have or feel like giving me some critique, you're free to open an issue.