Generates files for entities defined in a Core Data model. Inspired by mogenerator.
For each entity in the Core Data model, moblues will create two files: a machine file and a human file. The machine file will be overwritten each time and shouldn't be modified. Moblues will only create the human file if it doesn't exist.
Add this line to your application's Gemfile:
gem 'moblues'
And then execute:
$ bundle
Or install it yourself as:
$ gem install moblues
Usage:
moblues generate --human=HUMAN --machine=MACHINE --model=MODEL
Options:
--model=MODEL # Core Data model path
--human=HUMAN # Path where the human files will be stored
--machine=MACHINE # Path where the machine files will be stored
[--lang=LANG] # The language used to generate the files (objc or swift)
# Default: objc
generate the machine and human files for entities contained in a Core Data model
- Fork it ( https://github.com/garriguv/moblues/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- You're awesome! 👍