diff options
-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 |