diff options
author | Marc Coquand <marc@mccd.space> | 2023-12-26 15:54:34 -0600 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2023-12-26 15:54:34 -0600 |
commit | 353394783ae8503363ea751f81a5316ba7c4b3c9 (patch) | |
tree | a18f4808432fd07558870ab28e61e1550b55a14f | |
parent | c75ab6042f40f9101e88d41c1d41b5e41c3f12ef (diff) | |
download | fixgen-353394783ae8503363ea751f81a5316ba7c4b3c9.tar.gz fixgen-353394783ae8503363ea751f81a5316ba7c4b3c9.tar.bz2 fixgen-353394783ae8503363ea751f81a5316ba7c4b3c9.zip |
Update README
-rw-r--r-- | README.md | 55 |
1 files changed, 52 insertions, 3 deletions
@@ -45,11 +45,60 @@ This will print two JSON arrays to stdout. Fixgen comes with the following built-in types: - name + +```sh +$ fixgen 'user (1): id name' +id +John +``` + - uuidv4 + +```sh +$ fixgen 'user (1): id uuiv4' +id +6ebe54f5-24b3-43ae-a9e4-f91c481755e +``` + - int(min,max) -- constants, defined using quotes I.E. `$ fixgen 'user (1): id uuiv4, name "Bob"'` -- ("multiple","choices") -- increment, `$ fixgen 'user (4): id increment' -> id\n1\n2\n3\n4 + +```sh +$ fixgen 'amount (2): number int(2,40)' +number +2 +37 +``` + +- constants + +```sh +$ fixgen 'user (2): name "Bob"' +user +Bob +Bob +``` + +- Union + +```sh +$ fixgen 'purchase (4): currency ("SEK","MXN","USD")' +user +SEK +USD +MXN +MXN +``` + +- increment + +```sh +$ fixgen 'user (4): id increment' +id +1 +2 +3 +4 +``` ## Development - Prerequisites |