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

Introduce differents generation mode #17

Merged
merged 3 commits into from
Nov 2, 2017

Conversation

mcg-web
Copy link
Member

@mcg-web mcg-web commented Nov 2, 2017

Now the generateClasses and generateClass accepts bitmask to do more complex work when generating classes:

  • MODE_WRITE create dirs and files only if not exists
  • MODE_OVERRIDE allow to override file if existing
  • MODE_MAPPING_ONLY returns the class mapping but nothing is generated
  • MODE_DRY_RUN play all the generate process but no dir or file are actually created
  • true is shortcut to MODE_WRITE|MODE_OVERRIDE
  • false is shortcut to MODE_WRITE (default)

@mcg-web mcg-web merged commit 7ee5852 into overblog:master Nov 2, 2017
@mcg-web mcg-web deleted the introduce_dry_run_mode branch November 2, 2017 14:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant