rmgen

command module
v0.0.0-...-a9535a4 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2024 License: MIT Imports: 4 Imported by: 0

README

rmgen - Random Data Generator CLI Tool

Overview

rmgen is a command-line interface (CLI) tool written in Golang for generating random data based on a JSON configuration file. It's designed to make it easy for developers to quickly generate sample data for testing and development purposes.

Features

  • Simple and intuitive JSON configuration for defining data fields and types.
  • CSV output for easy integration with various applications and tools.
  • Customizable number of records to generate.
  • Supports various data types, such as email, name, etc.

Installation

To use rmgen, you need to have Golang installed. If you don't have Golang installed, you can download it here.

  1. Clone the repository:
git clone https://github.com/abinashphulkonwar/rmgen
cd rmgen
  1. Build the executable:
go build
  1. Run the tool:
./rmgen.exe -f path/to/your/config.json -c 1000

Configuration

Create a JSON configuration file to specify the fields and data types to generate. Example:

[
  {
    "field_name": "user email",
    "type": "email"
  },
  {
    "field_name": "user name",
    "type": "name"
  }
]

Usage

./rmgen.exe -f path/to/your/config.json -c 1000
  • -f: Specify the path to your JSON configuration file.
  • -c: Specify the number of records to generate.

Examples

Generate 1000 records based on the provided configuration:

./rmgen.exe -f path/to/your/config.json -c 1000

Contributing

Feel free to contribute by opening issues or pull requests. Any feedback or suggestions are highly appreciated.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
src

Jump to

Keyboard shortcuts

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