datagen-rs-cli

Crates.iodatagen-rs-cli
lib.rsdatagen-rs-cli
version0.1.0
sourcesrc
created_at2023-09-26 10:16:16.070144
updated_at2023-09-26 10:16:16.070144
descriptionThe CLI for datagen-rs
homepage
repositoryhttps://github.com/MarkusJx/datagen
max_upload_size
id983478
size36,402
Markus (MarkusJx)

documentation

README

datagen-rs-cli

The command line interface for the datagen-rs crate.

Installation

cargo install datagen-rs-cli

Usage

Usage: datagen <COMMAND>

Commands:
  write-json-schema  Write the JSON schema to a file
  generate           Generate random data from a schema
  help               Print this message or the help of the given subcommand(s)

Options:
  -h, --help     Print help
  -V, --version  Print version

Generate data

datagen generate <SCHEMA_FILE> [OUT_FILE]

This will generate data from the given schema file and write it to the given output file. If no output file is given, the data will be written to stdout.

Write JSON schema

datagen.exe write-json-schema <PATH>

This will write the JSON schema to the given path.

Commit count: 20

cargo fmt