The gtb module provides an interface for Project Gutenberg, allowing users to search through its archive of free eBooks, view text content, and access metadata from the CLI.
When to Activate
- When the user wants to search for classic books or authors (e.g., Shakespeare, Dumas).
- When reading the full text of a public domain book in the terminal.
- When accessing book metadata or viewing books in a web browser via CLI.
Core Principles & Rules
- Text-First: Optimized for retrieving and viewing raw text content (
txtsubcommand). - Interactive TUI: Use
showfor an interactive reading experience. - Search Support: Leverages DuckDuckGo for broader queries related to Gutenberg content.
Patterns & Examples
Search by Author
# Search for books by Alexander Dumas
x gtb search Dumas
View Book Text
# Retrieve the full text of book ID 100
x gtb txt 100
Interactive Reading
# Browse book ID 100 in an interactive interface
x gtb show 100
Checklist
- Confirm if the user has a specific book ID or needs to perform a search.
- Verify if the user wants to read in terminal or open in a browser.