-
Notifications
You must be signed in to change notification settings - Fork 16
Propose a default cli format #4
Comments
Meh, your right, I changed the default value for the |
Great! And how about changing the defaults ( |
Yes that is a good idea for a CLI tool :-) |
great news that you're working on that. And by the way, if you can take the latest HEAD to package the next phar version, I'd be delighted ; I miss the ability to generate passwords via the command line. |
I have released version 1.1, which use
If faker support password generation, faker-cli will also support it ;-) |
I downloaded 1.1, and it still generates in JSON format. > faker.phar name -c 10
[
"Wilson Boehm MD",
"Jermaine Breitenberg",
"Alana Cummings",
"Dr. Cassandra Turner",
"Miss Catherine Steuber",
"Mr. Hans Gleichner DVM",
"Ms. Leta Hackett",
"Josh Runolfsson",
"Susan Kuhlman",
"Tremayne Gaylord"
] |
It works for me: $ wget https://github.com/bit3/faker-cli/releases/download/1.1/faker.phar
...
$ php faker.phar --version
Faker Command Line Tool version 1.1
$ php faker.phar name -c 10
Mr. Izaiah Farrell I
Lennie Bergnaum
Adriana Pfannerstill II
Chauncey Bartell
Bernhard O'Conner PhD
Mr. Coty Breitenberg DDS
Benny Hoeger
Oleta Stracke
Dannie Greenholt
Doug Cummerata Please try |
My bad, you're right, I had an old global install overriding the one I just downloaded. It works all right, thanks. Did you consider making |
A cli tool usually outputs simple data to STDOUT, so that other tools can use it via pipe.
I can't find a simple way to output a list of 10 names via faker-cli. I tried:
But the output contains double quotes, that I don't need.
So I'd need a "cli" formatted, outputting raw data. I tend to think this should be the default formatter.
Also, I usually need more than 1 record. Why don't you make the default value of the
count
parameter 10 instead of 1?The text was updated successfully, but these errors were encountered: