jrp
is the CLI jokeey tool to generate Japanese random phrase(s).
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).
history, hist, h π Manage the history of the "generate" command.
favorite, fav, f β Manage the favorited phrase(s) of the history of "generate" command.
interactive, int, i π¬ Generate Japanese random phrase(s) interactively.
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
-i, --interactive π¬ generate Japanese random phrase(s) interactively
-t, --timeout β timeout in seconds for the interactive mode (default 30, e.g: 10)
-h, --help π€ help for jrp
-v, --version π version for jrp
Arguments:
number π’ number of phrases to generate (e.g: 10)
jrp
can generate Japanese random phrase(s) interactively.
You can favorite, save, skip, and exit interactively while generating phrase(s).
To use this mode, run either command below.
# Those commands below are equivalent.
# And they have their aliases. Please check the help message.
jrp interactive
# or
jrp --interactive
# or
jrp generate interactive
# or
jrp generate --interactive
Press either key below for your action.
u
- Favorite, continue.
i
- Favorite, exit.
j
- Save, continue.
k
- Save, exit.
m
- Skip, continue.
other
- Skip, exit.
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π