[v2 docs] Fix cli.mdx

This commit is contained in:
Lea Anthony 2023-05-27 13:30:24 +10:00
commit 84919468ba
No known key found for this signature in database
GPG key ID: 33DAF7BB90A58405

View file

@ -65,7 +65,7 @@ If you are unsure about a template, inspect `package.json` and `wails.json` for
| -nopackage | Do not package application | |
| -nocolour | Disable colour in output | |
| -nosyncgomod | Do not sync go.mod with the Wails version | |
| -nsis | Generate NSIS installer for Windows |
| -nsis | Generate NSIS installer for Windows | |
| -o filename | Output filename | |
| -obfuscated | Obfuscate the application using [garble](https://github.com/burrowers/garble) | |
| -platform | Build for the given (comma delimited) [platforms](../reference/cli.mdx#platforms) eg. `windows/arm64`. Note, if you do not give the architecture, `runtime.GOARCH` is used. | platform = `GOOS` environment variable if given else `runtime.GOOS`.<br/>arch = `GOARCH` envrionment variable if given else `runtime.GOARCH`. |
@ -169,8 +169,8 @@ Your system is ready for Wails development!
- A webserver is started on `http://localhost:34115` which serves your application (not just frontend) over http. This allows you to use your favourite browser development extensions
- All application assets are loaded from disk. If they are changed, the application will automatically reload (not rebuild). All connected browsers will also reload
- A JS module is generated that provides the following:
- JavaScript wrappers of your Go methods with autogenerated JSDoc, providing code hinting
- TypeScript versions of your Go structs, that can be constructed and passed to your go methods
- JavaScript wrappers of your Go methods with autogenerated JSDoc, providing code hinting
- TypeScript versions of your Go structs, that can be constructed and passed to your go methods
- A second JS module is generated that provides a wrapper + TS declaration for the runtime
- On macOS, it will bundle the application into a `.app` file and run it. It will use a `build/darwin/Info.dev.plist` for development.
@ -220,7 +220,7 @@ Wails uses templates for project generation. The `wails generate template` comma
it may be used for generating projects.
| Flag | Description |
| :--------------- | :------------------------------------------ |
|:-----------------|:--------------------------------------------|
| -name | The template name (Mandatory) |
| -frontend "path" | Path to frontend project to use in template |
@ -235,7 +235,7 @@ The `wails generate module` command allows you to manually generate the `wailsjs
`wails update` will update the version of the Wails CLI.
| Flag | Description |
| :----------------- | :------------------------------------ |
|:-------------------|:--------------------------------------|
| -pre | Update to latest pre-release version |
| -version "version" | Install a specific version of the CLI |