epubctl

command module
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2025 License: GPL-2.0 Imports: 1 Imported by: 0

README

epubctl

View EPUB metadata and rename EPUB files using metadata templates.

Usage Example

$ ls
hello.epub  hello.odt  hello.pdf

$ epubctl show *
hello.epub
- Title: Hello
- Author: Foo
- Publisher: Bar

EPUBs: 1

$ epubctl rename --template "{title} - {author}" *
hello.epub
- Hello - Foo.epub
- Hello - Foo.odt
- Hello - Foo.pdf

EPUBs: 1

$ ls
'Hello - Foo.epub'  'Hello - Foo.odt'  'Hello - Foo.pdf'

Filter Flags

The EPUB files processed by each command can be filtered using the --include and --exclude flags. By default, the filters match on the file path and all supported metadata fields. This can be limited by using filter prefixes:

  • author:
  • path:
  • publisher:
  • title:

By default, multiple filters must all match for an EPUB file to be included or excluded. This can be changed by using --include-any and --exclude-any.

The --ignore-case flag causes all filters to be case-insensitive.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL