New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI interface for faker #1278
CLI interface for faker #1278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey Vitor, just an idea on how we could harmonise the CLI work. 🤓
Faker.constants.sort.each do |constant| | ||
desc "#{constant.downcase} [-f #{Faker::Base.module_methods(constant).join('|')}]", | ||
"Returns fake #{constant.downcase} data" | ||
option :faker_type, aliases: '-f', desc: 'the faker data type' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm thinking we could merge this (faker [Constant] -f=[data type]
) into faker list [Constant] --type=[data type]
in #1507 ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree 👍
Reference: #14
Initial setup:
Add new CLI