This adds a Contentful Content Model generator to the template. Still very much WIP, but opening this PR to solicit feedback on the initial interface. Keeping it very similar to Rails conventions so:
$ sprout run static-cms model Post title:text description:text slug:symbol date:date rank:integer price:number private:boolean
Still work to be done on testing all the field types. Down the road, I think editing commands could be added, as well as auto generation of sample entries and a sample view showing how to load it. It might also be useful to keep a schema on the content models that's synced with Contentful. Lots of potential here.
This adds a Contentful Content Model generator to the template. Still very much WIP, but opening this PR to solicit feedback on the initial interface. Keeping it very similar to Rails conventions so:
Still work to be done on testing all the field types. Down the road, I think editing commands could be added, as well as auto generation of sample entries and a sample view showing how to load it. It might also be useful to keep a schema on the content models that's synced with Contentful. Lots of potential here.