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 --project-root option to generate command. #828

Merged
merged 3 commits into from
Apr 8, 2020

Conversation

ileitch
Copy link
Contributor

@ileitch ileitch commented Apr 8, 2020

I'm integrating XcodeGen into a rather large & complex project, and thus I'm trying to keep the directory structure clean.

I've a project named TTKit, and I'm placing the project.yml and all includes in TTKit/Config. Currently this requires that I prefix all file references with ../ to access the project root, which I think it's a bit messy.

This change adds a --project-root option to generate so that I may override the default base directory.

@ileitch ileitch force-pushed the project-root-option branch from 28ff2c6 to 784df67 Compare April 8, 2020 17:19
Copy link
Collaborator

@brentleyjones brentleyjones left a comment

Choose a reason for hiding this comment

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

Thanks @ileitch!

I've needed this as well, since we generate our project.yml. Right now I delete the file after we generate it and I would rather generate it to /tmp instead.

@brentleyjones brentleyjones merged commit b1edbda into yonaskolb:master Apr 8, 2020
@brentleyjones
Copy link
Collaborator

Thank you @ileitch 🎉

@ileitch ileitch deleted the project-root-option branch April 8, 2020 21:33
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.

2 participants