Skip to content

Command Line Interface

Eliran Wong edited this page Mar 10, 2021 · 10 revisions

Command Line Interface

You can run UBA and read bible study materials with terminal / console.

Enable CLI feature

To enable cli feature, you need to pass either "cli" or "gui" as an argument to "uba.py", i.e.

uba.py cli

OR

uba.py gui

Difference between "uba.py cli" & "uba.py gui"

Run "uba.py cli" to start UBA with command line interface.

Run "uba.py gui" to start UBA with graphical user interface.

Difference between "uba.py" & "uba.py gui"

Run "uba.py" to start UBA with graphical user interface WITHOUT enabling CLI feature. Unless you restart UBA, you CANNOT switch to command line interface during running UBA.

Run "uba.py" to start UBA with graphical user interface WITH CLI feature enabled. You CAN switch between graphical user interface and command line interface at any time.

Switch between gui & cli

With CLI feature enabled, you can switch between graphical user interface and command line interface at any time.

Switch from gui to cli

You can select "Command Line Interface" from right-click context menu to switch to cli. This option is ONLY available if you have cli feature enabled.

Switch from cli to gui

Enter on terminal:

.gui

Available commands

When you run UBA with cli,

Enter '.bible' to read bible content, '.study' to read study content, '.gui' to launch gui, '.quit' to quit, or UBA command:

.bible

.study

.gui

.quit

UBA command means standard commands recognised by UBA

e.g.

John 3

John 3:16-18

John 3:16; Rm 5:8

John 3:16-16

COMPARE:::John 3:16

COMPARE:::KJV_NET:::John 3

TEXT:::CUV

CROSSREFERENCE:::John 3:16

COMMENTARY:::John 3:16

Reference on available commands

https://github.com/eliranwong/UniqueBible/wiki/Command-line

OR

More details in:

https://github.com/eliranwong/UniqueBible/blob/master/TextCommandParser.py

Clone this wiki locally