Quickly find required kotlin-faker functionality from your terminal
The native images are available on releases page.
Download the image to a desired location and make it executable or use below script (Depends on jq)
cd ~
wget $(curl -s https://api.github.com/repos/serpro69/kotlin-faker/releases/latest | jq -r '.assets[].browser_download_url') -O faker-bot
chmod a+x ~/faker-bot
Usage details are also available with the --help
option:
./faker-bot --help
./faker-bot list --help
./faker-bot lookup --help
./faker-bot list
- list all providers and their functions./faker-bot list Address Name
- list functions ofAddress
andName
providers (Case insensitive)
Since version 1.4.0
partial matching is also supported:
./faker-bot list addr
- list functions ofAddress
provider
./faker-bot lookup name
- lookup functions by name (Case insensitive partial matching)
./faker-bot list --verbose
- prints sample values for each function
./faker-bot lookup name --verbose
- prints sample values for each function
./faker-bot list --java-syntax
- prints list of all available providers and their functions using java syntax
./faker-bot list --verbose --locale de
- combined with --verbose
, all localized functions will be printed
using de
locale.
./faker-bot list --list-locales
- prints all available locales
Inspired by faker-ruby/faker-bot