Skip to content

πŸ“š A simple, fast, and lightweight ebook management CLI built in Go. Supports importing, listing, and removing ebooks efficiently. Static builds supported.

License

Notifications You must be signed in to change notification settings

mahesarohman98/ebm-go

Repository files navigation

EBM-GO

EBM-GO (Ebook Management Library in Go) is a simple, fast, and lightweight ebook management tool built in Go. It supports importing, listing, and removing ebooks with ease.


Features

  • Import and manage ebooks quickly.
  • Search ebooks using filters.
  • Static binary build support.
  • Minimal dependencies.

Installation

You can install EBM-GO using either the quick build method or the optimized build method.

Quick Build (Development)

Build:

go build -tags sqlite_fts5 -ldflags="-s -w" -gcflags '-N -l' .

Run:

./ebmgo

Optimized Build (Recommended)

Build a smaller, static binary using Musl Toolchain:

Requirements:

sudo apt update
sudo apt install build-essential musl musl-tools musl-dev

Build:

make

Run:

./ebmgo

Usage

Import Books

ebm import [options] [directory]

Options:

  • -y β€” Skip editing book metadata before import
  • -h β€” Show help

Examples:

ebm import ./sample.pdf
ebm import -h

List Books

ebm list [options]

Options:

  • -f β€” The fields to display when listing books in the db. Available fields: title, authors, formats. Default: title,authors. (default "title,authors")
  • -s β€” Filter results by search query
  • -h β€” Show help

Example:

ebm list -s "modern"

Remove Books

ebm remove [options]

Options:

  • -ids string β€” Comma-separated book IDs to remove
  • -h β€” Show help

Example:

ebm remove -ids "1,2,3"

License

This project is licensed under the terms of the GNU General Public License v3.0. See the LICENSE file for details.


Author

Mahesa Rohman

About

πŸ“š A simple, fast, and lightweight ebook management CLI built in Go. Supports importing, listing, and removing ebooks efficiently. Static builds supported.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published