Commands

docs

gnorm docs Starts a web server running at localhost:8080 that serves docs for this version of Gnorm. Usage: gnorm docs [flags] Flags: -h, --help help for docs »

gen

gnorm gen Reads your gnorm.toml file and connects to your database, translating the schema into in-memory objects. Then reads your templates and writes files to disk based on those templates. Usage: gnorm gen [flags] Flags: -c, --config string relative path to gnorm config file (default "gnorm.toml") -h, --help help for gen -v, --verbose show debugging output »

init

gnorm init Creates a default gnorm.toml and the various template files needed to run GNORM. Usage: gnorm init [flags] Flags: -h, --help help for init »

preview

gnorm preview Reads your gnorm.toml file and connects to your database, translating the schema just as it would be during a full run. It is then printed out in an easy-to-read format. By default it prints out the data in a human-readable plaintext tabular format. You may specify a different format using the -format flag, in which case you can print json, yaml, or types, where types is a list of all types used by columns in your database. »

version

Shows the build date and commit hash used to build this binary. Usage: gnorm version [flags] Flags: -h, --help help for version Example output: $ gnorm version built at: 2017-08-23T21:55:35-04:00 commit hash: 14b58c2e4904b13e8526d95486450617c5e0c4f6 »