wordgen

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 11 Imported by: 0

README

Wordgen

A simple tool to format random words from multiple sources.

Installation

Binary

Download a binary from the releases.

Go Install

▶ go install github.com/jamslinger/wordgen@latest

Usage

NAME:
   Wordgen - A simple word generator that reads random words from input files and prints them as defined in the format.

USAGE:
   Usage: wordgen [OPTIONS]...

COMMANDS:
   help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --files value, --in value  Paths of input files.
   --format value, -f value   Format of resulting word, e.g. 'my-%s-%s-123'. Number of '%s' verbs must match the number of input files.
   --count value, -c value    Number of words to generate. Might be negative to generate an infinite number words. (default: 1)
   --help, -h                 show help (default: false)

Example

Struggling to come up with a random email address?

▶ wordgen -in samples/adjectives -in samples/animals -f '%s.%s@example.com' -c 3
frantic.oyster@example.com
melancholy.chicken@example.com
clumsy.anaconda@example.com

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL