book-description
get book-description - Get description for a book by filename
Returns the description for a book PDF by matching its filename.
This replaces the jq pattern: echo "$BOOKS_JSON" | jq -r --arg filename "X" '.[] | select(.filename == $filename) | .description'
Exit codes: 0 - Book found, outputs description 1 - Book not found or error
Flags
| Flag | Description |
|---|---|
--default |
Default value if book not found |
Examples
get book-description user-guide-dark.pdf # Outputs: User Guide
get book-description --default "Docs" X.pdf # Outputs default if not found
See Also
Tutorials | How-to Guides | Explanation | Reference
You are here: Reference — information-oriented technical descriptions of the system.