paupino / psqlpack

A logical database management system for PostgreSQL enabling incremental database deployment.
Apache License 2.0
8 stars 2 forks source link

Template Generation for new projects #94

Closed paupino closed 6 years ago

paupino commented 6 years ago

Fixes issue #81.

Introduces a new subcommand which accepts a template string. Currently this template string is either:

  1. project or
  2. publishprofile / publish_profile

These both accept two options:

  1. output = The output directory
  2. name = The name to be used for template generation

Project generation creates a new directory, a new project file as well as a default publish profile. Publish Profile generation just creates a new default publish profile.

Some other minor (but relevant) changes:

  1. I use OUTPUT instead of OUT everywhere to be a little more consistent
  2. Publish profiles now end in .publish by default (though psqlpack doesn't really care).
  3. Project files now end in .psqlproj by default (though psqlpack doesn't really care).