jrp
is the CLI tool to generate Japanese random phrase(s). (It's jokeey tool!)
You can save the generated phrase(s) to the history and manage them.
Also, you can save the generated phrase(s) to the favorite and manage them.
This tool uses WordNet Japan sqlite database file.
Usage:
jrp [flags]
jrp [command]
Available Subcommands:
download, dl, d π¦ Download WordNet Japan sqlite database file from the official web site.
generate, gen, g β¨ Generate Japanese random phrase(s). You can abbreviate "generate" sub command. ("jrp" and "jrp generate" are the same.)
history, hist, h π Manage the history of the "generate" command.
favorite, fav, f β Manage the favorited phrase(s) of the history of "generate" command.
help π€ Help for jrp.
completion π§ Generate the autocompletion script for the specified shell.
version π Show the version of jrp.
Flags:
-n, --number π’ number of phrases to generate (default 1, e.g: 10)
-p --prefix π¬ prefix of phrase(s) to generate
-s --suffix π¬ suffix of phrase(s) to generate
-d --dry-run π§ͺ generate phrase(s) without saving to the history
-P, --plain π plain text output instead of table output
-h, --help π€ help for jrp
-v, --version π version for jrp
Arguments:
number π’ number of phrases to generate (e.g: 10)
Default : $XDG_DATA_HOME/jrp
or $HOME/.local/share/jrp
export JRP_WNJPN_DB_FILE_DIR=/path/to/your/directory
Default : $XDG_DATA_HOME/jrp
or $HOME/.local/share/jrp
export JRP_DB_FILE_DIR=/path/to/your/directory
go install github.com/yanosea/jrp@latest
brew tap yanosea/tap
brew install yanosea/tap/jrp
Go to the Releases and download the latest binary for your platform.
reinstall jrp
!
go install github.com/yanosea/jrp@latest
brew update
brew upgrade jrp
Download the latest binary from the Releases page and replace the old binary in your $PATH
.
rm $GOPATH/bin/jrp
sudo rm -fr $GOPATH/pkg/mod/github.com/yanosea/jrp@*
brew uninstall jrp
brew untap yanosea/tap/jrp
Remove the binary you downloaded and placed in your $PATH
.
If you've set jrp envs, please replace $HOME/.local/share/jrp
with envs you've set.
These below commands are in the case of default. Ofcourse you can remove whole the directory.
rm $HOME/.local/share/jrp/wnjpn.db
rm $HOME/.local/share/jrp/jrp.db
I love the smart phone application PhrasePlus!
I wanted to run an application with equivalent functionality to this in the terminal, so I created it!
Feel free to point me in the right directionπ