uppercrust icon indicating copy to clipboard operation
uppercrust copied to clipboard

How do I start this framework from starting?

Open dineshsharmav2 opened this issue 9 years ago • 1 comments

Hi, As I got this framework link from google, and I want to use this framework to convert the my json data to model class. As I am not getting the proper information in detail,so I need some more information about where I need to pass the JSON data. I have installed the gem on my machine.

$ uppercrust generate --path {path} --base_only true|false

In the above command, there is nothing where I pass the json data. And also I have taken the clone this framework on my machine.

Thanks, Dinesh S

dineshsharmav2 avatar Jul 29 '16 12:07 dineshsharmav2

Hi,

the --path parameter is what you pass in to tell uppercrust where your JSON schema files are located. If you run the command from the directory that contains the schema files, just pass in . as current folder.

e.g.

# Run in same directory
$ uppercrust generate -p .

# Run and pass in path to directory
$ uppercrust generate -p {some other path}

It'll generate an output folder with your ObjC files in the directory that you ran the command from.

JanGorman avatar Aug 02 '16 09:08 JanGorman