[v2] Tidy generate module

This commit is contained in:
Lea Anthony
2021-06-27 20:26:37 +10:00
parent 6dec097184
commit 8ac69d6afd
2 changed files with 19 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
# Generate
The `generate` command provides the ability to generate various Wails related components.
## Usage
`wails generate [subcommand] [options]`
## Template
`wails generate template -name <name> [-frontend] [-q]`
Generate a starter template for you to customise.
| Flag | Details |
| :------------- | :----------- |
| -frontend | Copies all the files from the current directory into the template's `frontend` directory. Useful for converting frontend projects created by boilerplate generators. |
| -q | Suppress output |

View File

@@ -15,7 +15,7 @@ func AddSubcommand(app *clir.Cli, w io.Writer) error {
command := app.NewSubCommand("generate", "Code Generation Tools")
AddModuleCommand(app, command, w)
//AddModuleCommand(app, command, w)
template.AddSubCommand(app, command, w)
return nil