aboutsummaryrefslogtreecommitdiff
path: root/readme.md
blob: 21be73937c0819856fa1e372f6bdce6587797582 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#Libbible

This library provides a simplified interface to the SWORD project.

##libbible.so

The library can be compiled into a sharable object file and installed to the system. This is the default make option:

```console
make
sudo make install
```

The full interface is available in libbible.h.

##bible

An example cli is included with libbible, which can be compiled using:

```console
make bible
```

The interface is simplistic, and uses a subset of libbible's functionality:

```console
./bible --help

Usage:
 bible [options] [reference]

Print bible passages.

Options:
 -h, --help                         display this help message
     --list-modules                 list all installed modules
 -m, --module <mod>                 use specified module
     --set-default-module <mod>     use specified module by default in future runs
     --list-books                   list books available in the current module
     --list-chapters <book>         list chapters available in book in the current module
 -o, --omit-verse-numbers           when printing verse text, skip printing verse and chapter numbers
     --list-installable=<lang>      list bible versions available for download and install. Default lists for all languages.
     --install-network <mod>        install module from the network where <mod> is LANG:NAME as provided by --list-installable
     --install-zip <path>           install module from a zip file
     --remove-mod <mod>             delete a mod from the system


Examples:
 bible Gal 5:22-23
 bible John 3:16
 bible Romans 12
 bible Matt 5:3-7:27
 bible Genesis 1-3
```