/bibel

Bible command line interface utility

Primary LanguageRustEuropean Union Public License 1.2EUPL-1.2

bibel

GitHub GitHub last commit preview

What is bibel?

bibel (bee•bell) is a command line interface (CLI) utility for the Bible. Its primary use is for quick reference from the command line and piping into other programs, as reading the whole Bible by itself in the command line is not very comfortable.

How do I use bibel?

bibel [OPTIONS]... [ARGS]...

ARGS:
    <BOOK>       Book from the Bible
    <CHAPTER>    Chapter in <BOOK>
    <VERSE>      Verse in <CHAPTER>

If no arguments are specified, the entire Bible is printed. Specify BOOK to print a book from the Bible; specify BOOK and CHAPTER to print a chapter from the Bible; specify BOOK, CHAPTER, and VERSE to print a verse or range of verses from the Bible.

Example usage:

$ bibel | grep "inherit the earth"
Matthew. Chapter 5. [4] Blessed are the gentle, for they shall inherit the earth.

$ bibel "1 mac" 1 1:6
1 Maccabees. Chapter 1. [1] After Alexander the Macedonian, the son of Philip, who [...]

$ bibel gen
[Prints the entirety of Genesis]

How does bibel work?

bibel uses simple substring matching to find books and chapters. This works completely adequately for most of everything, although bibel john X Y will match both Book of John and letters from Saint John (1 John, 2 John, and 3 John) as a consequence.

Names of books used are their standard short names, e.g. 1 Maccabees instead of The First Book of Maccabees.

How do I build bibel?

bibel is written in Rust. External dependencies are bitflags, clap, colored, rayon, and rust-embed. The files in /web_bible are embedded during compilation of main.rs, and are accessed thusly and portably at runtime. The format of text that is expected during embedding is as follows:

  • First line: Book title
  • Second line: Chapter
  • Every line after: Verse
  • Each text file is a chapter

But where is bibel?

Note: You can sign in with your GitHub account.

https://maxwelljensen.no/git/maxwelljensen/bibel

Licence

This project is licensed under European Union Public Licence 1.2. The Bible used is the World English Bible, which is in the public domain. World English Bible is a trademark of eBible.org.