aboutsummaryrefslogtreecommitdiff
path: root/readme.md
blob: a9cf0630a9762cb43c870ec627707b7f471621d9 (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
#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


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