Skip to content
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

Closed
wants to merge 17 commits into from
Closed

CLI interface for faker #1278

wants to merge 17 commits into from

Conversation

vbrazo
Copy link
Member

@vbrazo vbrazo commented Jun 9, 2018

Reference: #14

Initial setup:

  • Copy reference code
  • Rebase with master
  • Remove cucumber

Add new CLI

  • Add dynamic logic

@vbrazo vbrazo self-assigned this Jun 9, 2018
@vbrazo vbrazo mentioned this pull request Jun 9, 2018
@vbrazo vbrazo changed the title Cli interface for faker CLI interface for faker Jun 10, 2018
Copy link
Contributor

@akabiru akabiru left a 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'
Copy link
Contributor

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 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree 👍

@vbrazo vbrazo closed this Jan 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants