diff options
author | Steve Manuel <nilslice@gmail.com> | 2017-01-16 09:53:50 -0800 |
---|---|---|
committer | Steve Manuel <nilslice@gmail.com> | 2017-01-16 09:53:50 -0800 |
commit | 920a30b1ee400da06530e39997c6545c260736fe (patch) | |
tree | 87dcf45880122874b071c3fbbe33314749977cd6 /README.md | |
parent | f1fa430c6a9c97fa36a9599746eca0f9a474073b (diff) |
update readme and usage, debug print fmt
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -80,22 +80,17 @@ Errors will be reported, but successful commands return nothing. ### generate, gen, g -Generate a content type file with boilerplate code to implement -the editor.Editable interface. Must be given one (1) parameter of -the name of the type for the new content. The fields following a -type determine the field names and types of the content struct to -be generated. These must be in the following format: -fieldName:"T" +Generate boilerplate code for various Ponzu components, such as `content`. Example: ```bash - struct fields and built-in types... - | - v -$ ponzu gen review title:"string" body:"string" rating:"int" tags:"[]string" - ^ - | - struct type + generator struct fields and built-in types... + | | + v v +$ ponzu gen content review title:"string" body:"string" rating:"int" tags:"[]string" + ^ + | + struct type ``` The command above will generate the file `content/review.go` with boilerplate |