add host and basepath config

This commit is contained in:
MaxToby
2021-07-30 14:33:10 +08:00
parent d658701630
commit 0e70444ab8
5 changed files with 32 additions and 21 deletions

View File

@ -7,7 +7,6 @@ import (
)
func Generator(ctx *cli.Context) error {
fileName := ctx.String("filename")
if len(fileName) == 0 {
@ -18,5 +17,7 @@ func Generator(ctx *cli.Context) error {
if err != nil {
return err
}
return generate.Do(fileName, p)
basepath := ctx.String("basepath")
host := ctx.String("host")
return generate.Do(fileName, host, basepath, p)
}