File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ func NewCmdGenerate(globalOptions *model.GlobalOptions) *cobra.Command {
45
45
$ gencoder generate -f myconfig.yaml --import-helper helpers.js
46
46
47
47
# Generate boilerplate code from URL with custom properties
48
- $ gencoder generate --templates "https://github.com/DanielLiu1123/gencoder/tree/main/templates " --properties="package=com.example,author=Freeman"
48
+ $ gencoder generate --templates "https://github.com/user/template-project " --properties="package=com.example,author=Freeman"
49
49
` ,
50
50
PreRun : func (cmd * cobra.Command , args []string ) {
51
51
validateArgs (args )
Original file line number Diff line number Diff line change @@ -20,6 +20,12 @@ func NewCmdRoot(buildInfo *model.BuildInfo) *cobra.Command {
20
20
Example : ` # Generate code from config file (default: gencoder.yaml)
21
21
$ gencoder generate -f gencoder.yaml
22
22
23
+ # Generate code from a template project with custom properties
24
+ $ gencoder generate --templates "https://github.com/user/template-project" --properties "package=com.example,author=Freeman" --include-non-tpl
25
+
26
+ # Generate code using custom helpers, read from local file or URL
27
+ $ gencoder generate --import-helper helpers.js
28
+
23
29
# Init basic config for quick start
24
30
$ gencoder init
25
31
You can’t perform that action at this time.
0 commit comments