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

Add dump command #710

Merged
merged 6 commits into from
Nov 10, 2019
Merged

Add dump command #710

merged 6 commits into from
Nov 10, 2019

Conversation

yonaskolb
Copy link
Owner

Added a new dump command

xcodegen dump

This can be used to output the spec in the following formats with --type:

  • yaml
  • json
  • parsed-yaml (parsed into swift and then back to yaml)
  • parsed-json (parsed into swift and then back to json)
  • summary (the old output of generate, which has been removed)
  • swift-dump (parsed into swift and then a dump() on that

This is useful for:

  • migrating to different formats
  • integrating with other tooling
  • checking the way include and variable expansion is evaluated
  • combining specs from multiple include
  • testing 2 way parsing

There are opportunities to output graphs of dependencies as well but that will go into a seperate xcodegen graph command

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.

1 participant