kjbc

A King James Bible concordance for the terminal.
git clone git://git.swab.dev/kjbc.git
Log | Files | Refs | README | LICENSE

commit cf71714f127ddc1b4eee6f0e71777d9ceb13ca33
parent ceab50011eaa4d0da1f53fd6376775464a4e2d33
Author: Jaron Swab <jaron@swab.dev>
Date:   Sun,  6 Jun 2021 14:24:42 -0400

Updated formatting and wording

Diffstat:
MREADME.md | 14++++++++++++--
Mmain.go | 9+++++----
2 files changed, 17 insertions(+), 6 deletions(-)

diff --git a/README.md b/README.md @@ -5,6 +5,7 @@ The king James Bible concordance for your terminal. `kjbc [options] word [word]` This will search the concordance to find the entry number for an English word. +If only one entry exists for a word, kjbc will return the entry definition as well. `kjbc [options] entry [number]` This will return the information for a given entry number. @@ -16,4 +17,13 @@ This will return the information for a given entry number. `-u` Display the usage information when set to true. Defaults to false when omitted. -`-help` Display the list of options. Defaults to false when omitted. -\ No newline at end of file +`-help` Display the list of options. Defaults to false when omitted. + +## Support The Project: +There are several ways to support this project. Visit [swab.dev/support](https://swab.dev/support) for more information. + +--- + +P.S. - I did not type up the entire Strong's concordance. That was already done and the text files may be found at http://www.ebibleconcordances.com/ + +I simply formatted the information to how I needed it in order to create the CLI. +\ No newline at end of file diff --git a/main.go b/main.go @@ -15,7 +15,7 @@ var ( ) func init() { - flag.StringVar(&lang, "l", "greek", "The target language to search within. Options are Hebrew or Greek.") + flag.StringVar(&lang, "l", "greek", "The target language to search within. Options are \"hebrew\" or \"greek\".") flag.BoolVar(&showVerses, "v", false, "Display the verses that correspond with the concordance entry number.") flag.BoolVar(&usage, "u", false, "Display the usage information.") } @@ -64,11 +64,12 @@ func getDefinition(term string) { func main() { flag.Parse() if usage || len(os.Args) <= 2 { - word := "kjbc [-l] word {word} - to find the entry number for an English word" - getEntry := "kjbc [-l] entry {number} - to return the information for a given entry number." + word := "kjbc [options] word {word} - to find the entry number for an English word." + oneWord := " If only one entry exists for a word, kjbc will return the entry definition as well." + getEntry := "kjbc [options] entry {number} - to return the information for a given entry number." moreHelp := "Run 'kjbc -help' for options." - msg := fmt.Sprintf("%s\n%s\n\n%s", word, getEntry, moreHelp) + msg := fmt.Sprintf("%s\n%s\n\n%s\n\n%s", word, oneWord, getEntry, moreHelp) fmt.Println(msg) return }