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 support for setting command-line options via a JSON config file #163

Merged
merged 2 commits into from
May 31, 2013
Merged

Add support for setting command-line options via a JSON config file #163

merged 2 commits into from
May 31, 2013

Conversation

simonwhitaker
Copy link
Contributor

The file's called .mogenerator-args, format is a simple JSON array. A
typical example might be:

[
    "--template-var", "arc=true",
    "--model", "MyApp.xcdatamodeld/MyApp.xcdatamodel",
    "--machine-dir", "Model/machine",
    "--human-dir", "Model"
]

The file's called .mogenerator-args, format is a simple JSON array. A
typical example might be:

    [
        "--template-var", "arc=true",
        "--model", "MyApp.xcdatamodeld/MyApp.xcdatamodel",
        "--machine-dir", "Model/machine",
        "--human-dir", "Model"
    ]
@rentzsch
Copy link
Owner

Looks good except that makes mogenerator require 10.7 or later. I think it still works on 10.6 and this feature doesn't seem pivotal enough to warrant the break.

If you make it so it tests NSJSONSerialization availability at runtime then I'll accept the patch.

@simonwhitaker
Copy link
Contributor Author

Good call, I hadn't considered that. Latest commit addresses this issue.

@rentzsch
Copy link
Owner

Looks good, thanks!

rentzsch added a commit that referenced this pull request May 31, 2013
[NEW] Add support for setting command-line options via a JSON config file. (Simon Whitaker)
@rentzsch rentzsch merged commit 1a2788e into rentzsch:master May 31, 2013
ddrccw pushed a commit to ddrccw/mogenerator that referenced this pull request Jan 20, 2014
[NEW] Add support for setting command-line options via a JSON config file. (Simon Whitaker)
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