Help us shape the future of Go! Take the 2026 Go Developer Survey

commands

package
v3.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 1, 2026 License: MIT Imports: 125 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BuildSettings = map[string]string{}

BuildSettings contains the CLI build settings

View Source
var DisableFooter bool

Functions

func AndroidDevices added in v3.1.0

func AndroidDevices(_ *AndroidDevicesOptions) error

func AndroidOverlayGen

func AndroidOverlayGen(options *AndroidOverlayGenOptions) error

AndroidOverlayGen generates a Go build overlay JSON that injects a generated main_android.gen.go into the application's main package. That file's init() calls application.RegisterAndroidMain(main), which the c-shared library needs because main() is not invoked automatically in -buildmode=c-shared.

This mirrors the iOS overlay (see IOSOverlayGen): the file is injected virtually via the overlay so the user's project root stays clean.

It writes:

  • <Out> : overlay JSON file
  • <dir>/gen/main_android.gen.go : the generated Go file referenced by the overlay

The overlay maps <appDir>/main_android.gen.go -> <dir>/gen/main_android.gen.go

func AndroidRun added in v3.1.0

func AndroidRun(options *AndroidRunOptions, arguments []string) error

func ApplicationExitCode added in v3.1.0

func ApplicationExitCode(err error) (int, bool)

func Build

func Build(buildFlags *flags.Build, otherArgs []string) error

func BuildInfo

func BuildInfo(_ *BuildInfoOptions) error

func Clean added in v3.1.0

func Clean(args []string) error

Clean removes only disposable Wails-owned state. It intentionally leaves build output and every user-owned path untouched; final artifacts require a future recorded-digest cleanup pass rather than a directory-wide delete.

func ConfigCheck added in v3.1.0

func ConfigCheck(options *ConfigCheckOptions, arguments []string) error

func Cp

func Cp(_ *CpOptions) error

func Dev

func Dev(options *DevOptions, args ...string) error

func Doctor

func Doctor(options *flags.Doctor) error

func DoctorNg

func DoctorNg(options *DoctorNgOptions) error

func Eject added in v3.1.0

func Eject(options *EjectOptions, args []string) error

func EntitlementsSetup

func EntitlementsSetup(options *flags.EntitlementsSetup) error

EntitlementsSetup runs the interactive entitlements configuration wizard

func GenerateAppImage

func GenerateAppImage(options *GenerateAppImageOptions) error

func GenerateBindings

func GenerateBindings(options *flags.GenerateBindingsOptions, patterns []string) error

func GenerateBuildAssets

func GenerateBuildAssets(options *BuildAssetsOptions) error

GenerateBuildAssets generates the build assets for the project.

func GenerateConstants

func GenerateConstants(options *GenerateConstantsOptions) error

func GenerateDotDesktop

func GenerateDotDesktop(options *DotDesktopOptions) error

func GenerateIcons

func GenerateIcons(options *IconsOptions) error

func GenerateRuntime

func GenerateRuntime(options *RuntimeOptions) error

func GenerateSyso

func GenerateSyso(options *SysoOptions) (err error)

func GenerateTemplate

func GenerateTemplate(options *templates.BaseTemplate) error

func GenerateTemplateIcon

func GenerateTemplateIcon(data []byte, outputFilename string) (err error)

func GenerateWebView2Bootstrapper

func GenerateWebView2Bootstrapper(options *GenerateWebView2Options) error

func IOSOverlayGen

func IOSOverlayGen(options *IOSOverlayGenOptions) error

IOSOverlayGen generates a Go build overlay JSON that injects a generated main_ios.gen.go exporting WailsIOSMain() which calls main().

It writes: - <Out> : overlay JSON file - <dir>/gen/main_ios.gen.go : the generated Go file referenced by the overlay

The overlay maps <appDir>/main_ios.gen.go -> <dir>/gen/main_ios.gen.go

func IOSOverlayGenCmd

func IOSOverlayGenCmd() error

IOSOverlayGenCmd is a CLI entry compatible with NewSubCommandFunction. Defaults:

config: ./build/config.yml (optional)
out:    ./build/ios/xcode/overlay.json

func IOSXcodeGen

func IOSXcodeGen(options *IOSXcodeGenOptions) error

IOSXcodeGen generates an Xcode project skeleton for the current app.

func IOSXcodeGenCmd

func IOSXcodeGenCmd() error

IOSXcodeGenCmd is a CLI entry compatible with NewSubCommandFunction. Defaults:

config: ./build/config.yml (optional)
out:    ./build/ios/xcode

func Init

func Init(options *flags.Init) error

func InstallMSIXTools

func InstallMSIXTools() error

InstallMSIXTools installs the required tools for MSIX packaging

func MCP

func MCP(options *MCPOptions) error

MCP starts a local MCP server. Transport is selected automatically: stdio when no terminal is attached and loopback Streamable HTTP when run interactively. The token is returned in the MCP initialize instructions so an agent can use it without contaminating the JSON-RPC stdout stream. It is also written to stderr for humans debugging a manually launched server.

func Migrate added in v3.1.0

func Migrate(options *MigrateOptions) error

func Package

func Package(options *flags.Package, otherArgs []string) error

func ReleaseNotes

func ReleaseNotes(options *ReleaseNotesOptions) error

func RunApplication added in v3.1.0

func RunApplication(options *RunOptions, args []string) (resultErr error)

RunApplication builds and launches the local application. Absence of a manifest selects ordinary go run; invalid manifests never take that fallback.

func RunTask

func RunTask(options *RunTaskOptions, otherArgs []string) error

func ServiceInit

func ServiceInit(options *flags.ServiceInit) error

func Setup

func Setup(_ *SetupOptions) error

func Sign

func Sign(options *flags.Sign) error

Sign signs a binary or package

func SignWrapper

func SignWrapper(options *flags.SignWrapper, otherArgs []string) error

func SigningSetup

func SigningSetup(options *flags.SigningSetup) error

SigningSetup configures signing intent in wails.yaml projects and retains the legacy Taskfile writer for projects that have not opted in to YAML.

func ToolCapabilities

func ToolCapabilities(_ *ToolCapabilitiesOptions) error

func ToolCheckPort

func ToolCheckPort(options *ToolCheckPortOptions) error

func ToolDockerMounts

func ToolDockerMounts(_ *DockerMountsOptions) error

ToolDockerMounts outputs Docker volume mount flags for cross-compilation. It generates mounts for the Go module cache and any local replace directives in go.mod. This is a cross-platform replacement for the bash pipeline that was previously used in Taskfile templates.

The project is assumed to be mounted at /app inside the container (matching the Taskfile `docker run -v "{{.ROOT_DIR}}:/app"` convention). Each -v flag is double-quoted so paths with spaces survive shell tokenisation in both POSIX sh and cmd.exe (go-task may use either on Windows).

func ToolHas

func ToolHas(opts *HasOptions) error

ToolHas checks if a given tool (or any of several pipe-separated tools) is available in PATH. Outputs "true" or "false" for use in Taskfile sh: variables.

func ToolHasCC

func ToolHasCC(_ *HasCCOptions) error

ToolHasCC is a deprecated alias for `wails3 tool has gcc|clang`.

func ToolLipo

func ToolLipo(options *flags.Lipo) error

func ToolMSIX

func ToolMSIX(options *flags.ToolMSIX) error

ToolMSIX creates an MSIX package for Windows applications

func ToolPackage

func ToolPackage(options *flags.ToolPackage) error

ToolPackage generates a package in the specified format

func ToolPrepareMacOSOutput

func ToolPrepareMacOSOutput(options *PrepareMacOSOutputOptions) error

ToolPrepareMacOSOutput keeps generated app bundles on a local filesystem when a file provider adds Finder metadata to .app directories. A symlink preserves the project's usual bin path while the actual bundle stays signable.

func ToolVersion

func ToolVersion(options *ToolVersionOptions) error

ToolVersion bumps a semantic version based on the provided flags

func UpdateBuildAssets

func UpdateBuildAssets(options *UpdateBuildAssetsOptions) error

UpdateBuildAssets updates the build assets for the project.

func UpdateCLI

func UpdateCLI(options *UpdateCLIOptions) error

func UpdaterGenKey

func UpdaterGenKey(options *UpdaterGenKeyOptions) error

UpdaterGenKey generates an Ed25519 keypair for signing update artifacts.

func UpdaterManifest

func UpdaterManifest(options *UpdaterManifestOptions, args []string) error

UpdaterManifest generates an update manifest for the given artifact files or directories, computing digests and (when a key is provided) signatures.

func UpdaterSign

func UpdaterSign(options *UpdaterSignOptions, files []string) error

UpdaterSign signs one or more artifact files and prints the digests and signatures as JSON.

func UpdaterVerify

func UpdaterVerify(options *UpdaterVerifyOptions) error

UpdaterVerify re-checks every artifact in a manifest against the files on disk: recomputes digests and verifies signatures with the public key, exactly as a shipped application would. Intended as a CI gate before publishing.

func Version

func Version(_ *VersionOptions) error

func Watcher

func Watcher(options *WatcherOptions) error

Types

type AndroidDevicesOptions added in v3.1.0

type AndroidDevicesOptions struct{}

type AndroidOverlayGenOptions

type AndroidOverlayGenOptions struct {
	Out    string `description:"Path to write overlay.json" default:"build/android/overlay.json"`
	Config string `description:"Path to build/config.yml (optional)" default:"build/config.yml"`
}

AndroidOverlayGenOptions holds parameters for Android overlay generation.

type AndroidRunOptions added in v3.1.0

type AndroidRunOptions struct {
	Profile      string `name:"profile" description:"Build configuration profile (or pass it as the first argument)"`
	Device       string `name:"device" description:"Connected adb device serial"`
	Emulator     string `name:"emulator" description:"Android Virtual Device name to start or reuse"`
	APK          string `name:"apk" description:"Install an existing APK instead of building one"`
	NoLaunch     bool   `name:"no-launch" description:"Install the APK without launching the app"`
	Logs         bool   `name:"logs" description:"Stream application logs and monitor the target until the app exits or Ctrl+C"`
	StopEmulator bool   `name:"stop-emulator" description:"Stop the selected emulator when an attached run exits"`
}

AndroidRunOptions controls development APK deployment. A profile selects project configuration; deployment always builds the selected device ABI as a development APK because production AABs cannot be installed directly.

type BuildAssetsOptions

type BuildAssetsOptions struct {
	Dir                   string `description:"The directory to generate the files into"            default:"."`
	Name                  string `description:"The name of the project"`
	BinaryName            string `description:"The name of the binary"`
	ProductName           string `description:"The name of the product" default:"My Product"`
	ProductDescription    string `description:"The description of the product" default:"My Product Description"`
	ProductVersion        string `description:"The version of the product" default:"0.1.0"`
	ProductCompany        string `description:"The company of the product" default:"My Company"`
	ProductCopyright      string `description:"The copyright notice" default:"\u00a9 now, My Company"`
	ProductComments       string `description:"Comments to add to the generated files" default:"This is a comment"`
	ProductIdentifier     string `description:"The product identifier, e.g com.mycompany.myproduct"`
	CFBundleIconName      string `description:"The macOS icon name (for Assets.car icon bundles)"`
	MinIOSVersion         string `description:"Minimum iOS version for the generated Info.plist" default:"15.0"`
	Publisher             string `description:"Publisher name for MSIX package (e.g., CN=CompanyName)"`
	ProcessorArchitecture string `description:"Processor architecture for MSIX package" default:"x64"`
	ExecutablePath        string `description:"Path to executable for MSIX package"`
	ExecutableName        string `description:"Name of executable for MSIX package"`
	OutputPath            string `description:"Output path for MSIX package"`
	CertificatePath       string `description:"Certificate path for MSIX package"`
	Silent                bool   `description:"Suppress output to console"`
	Typescript            bool   `description:"Use typescript" default:"false"`
	UseInterfaces         bool   `description:"Generate TypeScript interfaces instead of classes"`
}

BuildAssetsOptions defines the options for generating build assets.

type BuildConfig

type BuildConfig struct {
	BuildAssetsOptions
	TemplateEnrichment
	FileAssociations []FileAssociation `yaml:"fileAssociations"`
	Protocols        []ProtocolConfig  `yaml:"protocols,omitempty"`
}

BuildConfig defines the configuration for generating build assets.

func (BuildConfig) WindowsVersion added in v3.1.0

func (config BuildConfig) WindowsVersion() string

WindowsVersion is the numeric MSIX identity; display metadata retains semver.

type BuildInfoOptions

type BuildInfoOptions struct{}

type Capabilities

type Capabilities struct {
	Platform string             `json:"platform"`
	Arch     string             `json:"arch"`
	Linux    *LinuxCapabilities `json:"linux,omitempty"`
}

type ConfigCheckOptions added in v3.1.0

type ConfigCheckOptions struct {
	Profile string `name:"profile" description:"Validate only this named profile"`
}

type CpOptions

type CpOptions struct{}

type DevOptions

type DevOptions struct {
	AppArgs []string `name:"appargs" description:"Application arguments as one shell-quoted string; prefer -- followed by arguments"`

	Verbose     bool   `name:"verbose" description:"Stream build commands and output during development"`
	Quiet       bool   `name:"quiet" description:"Only show development failures"`
	Host        string `name:"host" description:"Frontend bind address (use this Mac’s LAN IP for a physical iOS device)"`
	Device      string `name:"device" description:"iOS device/simulator identifier or Android adb serial"`
	Emulator    string `name:"emulator" description:"Android Virtual Device to start or reuse"`
	Destination string `name:"destination" description:"iOS destination: simulator (default) or device"`
	flags.Common

	Config   string `description:"The config file including path" default:"./build/config.yml"`
	VitePort int    `name:"port" description:"Specify the vite dev server port"`
	Secure   bool   `name:"s" description:"Enable HTTPS"`
	Tags     string `name:"tags" description:"Additional development build tags to pass to the Go compiler (comma-separated)"`
	Profile  string `name:"profile" description:"Manifest profile to apply"`
	Target   string `name:"target" description:"Target platform and architecture"`
	Plan     bool   `name:"plan" description:"Print the finite development startup plan without starting a session"`
	// contains filtered or unexported fields
}

type DockerMountsOptions

type DockerMountsOptions struct{}

DockerMountsOptions holds options for the docker-mounts command.

type DoctorNgOptions

type DoctorNgOptions struct {
	NonInteractive bool `name:"n" description:"Run in non-interactive mode (no TUI)"`
}

type DotDesktopOptions

type DotDesktopOptions struct {
	OutputFile    string `description:"The output file to write to"`
	Type          string `description:"The type of the desktop entry" default:"Application"`
	Name          string `description:"The name of the application"`
	Exec          string `description:"The binary name + args to execute"`
	Icon          string `description:"The icon name or path for the application"`
	Categories    string `description:"Categories in which the application should be shown e.g. 'Development;IDE;'"`
	Comment       string `description:"A brief description of the application"`
	Terminal      bool   `description:"Whether the application runs in a terminal" default:"false"`
	Keywords      string `description:"Keywords associated with the application e.g. 'Editor;Image;'" default:"wails"`
	Version       string `description:"The version of the Desktop Entry Specification" default:"1.0"`
	GenericName   string `description:"A generic name for the application"`
	StartupNotify bool   `description:"If true, the app will send a notification when starting" default:"false"`
	MimeType      string `description:"The MIME types the application can handle e.g. 'image/gif;image/jpeg;'"`
}

type EjectOptions added in v3.1.0

type EjectOptions struct {
	Force bool `name:"force" description:"Replace an existing wails.ejected.yaml atomically"`
}

type Entitlement

type Entitlement struct {
	Key         string
	Name        string
	Description string
	Category    string
}

Entitlement represents a macOS entitlement

type FileAssociation

type FileAssociation struct {
	Ext         string `yaml:"ext"`
	Name        string `yaml:"name"`
	Description string `yaml:"description"`
	IconName    string `yaml:"iconName"`
	Role        string `yaml:"role"`
	MimeType    string `yaml:"mimeType"`
}

FileAssociation defines the structure for a file association.

type GenerateAppImageOptions

type GenerateAppImageOptions struct {
	Binary      string `description:"The binary to package including path"`
	Icon        string `description:"Path to the icon"`
	DesktopFile string `description:"Path to the desktop file"`
	OutputDir   string `description:"Path to the output directory" default:"."`
	BuildDir    string `description:"Path to the build directory"`
}

type GenerateConstantsOptions

type GenerateConstantsOptions struct {
	ConstantsFilename string `name:"f" description:"The filename for the models file" default:"constants.go"`
	OutputFilename    string `name:"o" description:"The output file" default:"constants.js"`
}

type GenerateWebView2Options

type GenerateWebView2Options struct {
	Directory string `name:"dir" json:"directory"`
}

type HasCCOptions

type HasCCOptions struct{}

HasCCOptions holds options for the deprecated has-cc command.

type HasOptions

type HasOptions struct {
	Tool string `pos:"1" name:"tool" description:"Tool(s) to check for in PATH. Use | to check for any of multiple tools (e.g. gcc|clang)"`
}

HasOptions holds options for the has command.

type IOSOverlayGenOptions

type IOSOverlayGenOptions struct {
	Out    string `description:"Path to write overlay.json" default:"build/ios/xcode/overlay.json"`
	Config string `description:"Path to build/config.yml (optional)" default:"build/config.yml"`
}

IOSOverlayGenOptions holds parameters for overlay generation.

type IOSXcodeGenOptions

type IOSXcodeGenOptions struct {
	Icon   string `description:"Path to the application icon PNG"`
	OutDir string `description:"Output directory for generated Xcode project" default:"build/ios/xcode"`
	Config string `description:"Path to build/config.yml (optional)" default:"build/config.yml"`
}

IOSXcodeGenOptions holds parameters for Xcode project generation.

type IconsOptions

type IconsOptions struct {
	Example           bool   `description:"Generate example icon file (appicon.png) in the current directory"`
	Input             string `description:"The input image file" default:"build/appicon.png"`
	Sizes             string `description:"The sizes to generate in .ico file (comma separated, 1-256 pixels)" default:"256,128,64,48,32,16"`
	WindowsFilename   string `description:"The output filename for the Windows icon" default:"build/windows/icon.ico"`
	MacFilename       string `description:"The output filename for the Mac icon bundle" default:"build/darwin/icon.icns"`
	IconComposerInput string `description:"The input Icon Composer file (.icon)"`
	MacAssetDir       string `description:"The output directory for the Mac assets (Assets.car and icons.icns)"`
}

type LinuxCapabilities

type LinuxCapabilities struct {
	GTK4Available        bool   `json:"gtk4_available"`
	GTK3Available        bool   `json:"gtk3_available"`
	WebKitGTK6Available  bool   `json:"webkitgtk_6_available"`
	WebKit2GTK4Available bool   `json:"webkit2gtk_4_1_available"`
	Recommended          string `json:"recommended"`
}

type MCPOptions

type MCPOptions struct {
	Token string `name:"token" description:"Bearer token for mutating and process-control tools"`
	Root  string `name:"root" description:"Allowed project root (defaults to the current directory)"`
	HTTP  bool   `name:"http" description:"Use Streamable HTTP instead of automatic transport selection"`
	Stdio bool   `name:"stdio" description:"Use stdio instead of automatic transport selection"`
	Port  int    `name:"port" description:"HTTP port (0 chooses a free loopback port)" default:"0"`
}

MCPOptions configures the local project MCP server. Transport is selected automatically: stdio when launched by an agent (no terminal) and loopback Streamable HTTP when run interactively. Both modes can be forced explicitly.

type MSIXOptions

type MSIXOptions struct {
	WailsConfig
	// MSIX specific options
	Publisher             string `json:"publisher"`
	CertificatePath       string `json:"certificatePath"`
	CertificatePassword   string `json:"certificatePassword,omitempty"`
	ProcessorArchitecture string `json:"processorArchitecture"`
	ExecutableName        string `json:"executableName"`
	ExecutablePath        string `json:"executablePath"`
	OutputPath            string `json:"outputPath"`
	AppxManifest          string `json:"appxManifest,omitempty"`
	IconPath              string `json:"iconPath,omitempty"`
	UseMsixPackagingTool  bool   `json:"useMsixPackagingTool"`
	UseMakeAppx           bool   `json:"useMakeAppx"`
}

MSIXOptions represents the configuration for MSIX packaging

type MigrateOptions added in v3.1.0

type MigrateOptions struct {
	DryRun   bool   `name:"dry-run" description:"Analyse without writing project files"`
	JSON     bool   `name:"json" description:"Print the machine-readable report"`
	Activate bool   `name:"activate" description:"Validate a reviewed migration draft and atomically activate it"`
	Output   string `name:"output" description:"Write or activate an inactive proposal at this project-relative path"`
}

type MigrationDiagnostic added in v3.1.0

type MigrationDiagnostic = migration.Diagnostic

type MigrationReport added in v3.1.0

type MigrationReport = migration.Report

type PrepareMacOSOutputOptions

type PrepareMacOSOutputOptions struct {
	Dir string `name:"dir" description:"Project build output directory" default:"bin"`
}

type ProtocolConfig

type ProtocolConfig struct {
	Scheme      string `yaml:"scheme"                json:"scheme"`
	Description string `yaml:"description,omitempty" json:"description,omitempty"`
}

ProtocolConfig defines the structure for a custom protocol in wails.json/wails.yaml

type ReleaseNotesOptions

type ReleaseNotesOptions struct {
	Version  string `name:"v" description:"The version to show release notes for"`
	NoColour bool   `name:"n" description:"Disable colour output"`
}

type RunOptions added in v3.1.0

type RunOptions struct {
	SkipBuild   bool     `name:"skip-build" description:"Run existing desktop binaries from the YAML output directory without building"`
	AppArgs     []string `name:"appargs" description:"Application arguments as one shell-quoted string; prefer -- followed by arguments"`
	Device      string   `name:"device" description:"Android adb serial or iOS device/simulator identifier"`
	Emulator    string   `name:"emulator" description:"Android Virtual Device to start or reuse"`
	Destination string   `name:"destination" description:"iOS destination: simulator (default) or device"`

	Tags   string `name:"tags" description:"Additional comma-separated Go build tags"`
	Target string `name:"target" description:"One platform/architecture to run (defaults to the host)"`
	Plan   bool   `name:"plan" description:"Show resolved build and launch settings without executing"`
}

type RunTaskOptions

type RunTaskOptions struct {
	Name             string `pos:"1"`
	Help             bool   `name:"h" description:"shows Task usage"`
	Init             bool   `name:"i" description:"creates a new Taskfile.yml"`
	List             bool   `name:"list" description:"tasks with description of current Taskfile"`
	ListAll          bool   `name:"list-all" description:"lists tasks with or without a description"`
	ListJSON         bool   `name:"json" description:"formats task list as json"`
	Status           bool   `name:"status" description:"exits with non-zero exit code if any of the given tasks is not up-to-date"`
	Force            bool   `name:"f" description:"forces execution even when the task is up-to-date"`
	Watch            bool   `name:"w" description:"enables watch of the given task"`
	Verbose          bool   `name:"v" description:"enables verbose mode"`
	Version          bool   `name:"version" description:"prints version"`
	Silent           bool   `name:"s" description:"disables echoing"`
	Parallel         bool   `name:"p" description:"executes tasks provided on command line in parallel"`
	Dry              bool   `name:"dry" description:"compiles and prints tasks in the order that they would be run, without executing them"`
	Summary          bool   `name:"summary" description:"show summary about a task"`
	ExitCode         bool   `name:"x" description:"pass-through the exit code of the task command"`
	Dir              string `name:"dir" description:"sets directory of execution"`
	EntryPoint       string `name:"taskfile" description:"choose which Taskfile to run."`
	OutputName       string `name:"output" description:"sets output style: [interleaved|group|prefixed]"`
	OutputGroupBegin string `name:"output-group-begin" description:"message template to print before a task's grouped output"`
	OutputGroupEnd   string `name:"output-group-end" description:"message template to print after a task's grouped output"`
	Color            bool   `name:"c" description:"colored output. Enabled by default. Set flag to false or use NO_COLOR=1 to disable" default:"true"`
	Concurrency      int    `name:"C" description:"limit number tasks to run concurrently"`
	Interval         int64  `name:"interval" description:"interval to watch for changes"`
}

type RuntimeOptions

type RuntimeOptions struct {
	Directory string `name:"d" description:"Directory to generate runtime file in" default:"."`
}

type SetupOptions

type SetupOptions struct{}

type SysoOptions

type SysoOptions struct {
	Manifest string `description:"The manifest file"`
	Info     string `description:"The info.json file"`
	Icon     string `description:"The icon file"`
	Out      string `description:"The output filename for the syso file"`
	Arch     string `description:"The target architecture"`
}

func (*SysoOptions) Default

func (i *SysoOptions) Default() *SysoOptions

type TemplateEnrichment

type TemplateEnrichment struct {
	Cls string `description:"A helper for using close template tags safely }}" default:"}}"`
	Opn string `description:"A helper for using open template tags safely {{" default:"{{"`
	// BackgroundModes feeds the iOS Info.plist template's UIBackgroundModes block.
	// It's populated by the iOS Xcode generator from ios.backgroundModes in
	// build/config.yml; the generic build-assets path leaves it empty (like
	// MinIOSVersion there, it doesn't read the ios: section), so no
	// UIBackgroundModes key is emitted unless configured.
	BackgroundModes []string `yaml:"-"`
}

type ToolCapabilitiesOptions

type ToolCapabilitiesOptions struct{}

type ToolCheckPortOptions

type ToolCheckPortOptions struct {
	URL  string `name:"u" description:"URL to check"`
	Host string `name:"h" description:"Host to check" default:"localhost"`
	Port int    `name:"p" description:"Port to check"`
}

type ToolVersionOptions

type ToolVersionOptions struct {
	Version    string `name:"v" description:"Current version to bump"`
	Major      bool   `name:"major" description:"Bump major version"`
	Minor      bool   `name:"minor" description:"Bump minor version"`
	Patch      bool   `name:"patch" description:"Bump patch version"`
	Prerelease bool   `name:"prerelease" description:"Bump prerelease version (e.g., alpha.5 to alpha.6)"`
}

type UpdateBuildAssetsOptions

type UpdateBuildAssetsOptions struct {
	Dir                string `description:"The directory to generate the files into"            default:"build"`
	Name               string `description:"The name of the project"`
	BinaryName         string `description:"The name of the binary"`
	ProductName        string `description:"The name of the product"                             default:"My Product"`
	ProductDescription string `description:"The description of the product"                      default:"My Product Description"`
	ProductVersion     string `description:"The version of the product"                          default:"0.1.0"`
	ProductCompany     string `description:"The company of the product"                          default:"My Company"`
	ProductCopyright   string `description:"The copyright notice"                                default:"© now, My Company"`
	ProductComments    string `description:"Comments to add to the generated files"              default:"This is a comment"`
	ProductIdentifier  string `description:"The product identifier, e.g com.mycompany.myproduct"`
	CFBundleIconName   string `description:"The macOS icon name (for Assets.car icon bundles)"`
	MinIOSVersion      string `description:"Minimum iOS version for the generated Info.plist"     default:"15.0"`
	Config             string `description:"The path to the config file"`
	Silent             bool   `description:"Suppress output to console"`
}

UpdateBuildAssetsOptions defines the options for updating build assets.

type UpdateCLIOptions

type UpdateCLIOptions struct {
	NoColour   bool   `name:"n" description:"Disable colour output"`
	PreRelease bool   `name:"pre" description:"Update to the newest build of any kind, including nightlies"`
	Nightly    bool   `name:"nightly" description:"Update to the newest nightly pre-release"`
	Version    string `name:"version" description:"Update to a specific version (eg v3.0.0)"`
	Latest     bool   `name:"latest" description:"Install the newest release (weekly or hotfix, no nightlies)"`
}

type UpdateConfig

type UpdateConfig struct {
	TemplateEnrichment
	UpdateBuildAssetsOptions
	FileAssociations []FileAssociation `yaml:"fileAssociations"`
	Protocols        []ProtocolConfig  `yaml:"protocols,omitempty"`
}

UpdateConfig defines the configuration for updating build assets.

func (UpdateConfig) WindowsVersion added in v3.1.0

func (config UpdateConfig) WindowsVersion() string

type UpdaterGenKeyOptions

type UpdaterGenKeyOptions struct {
	Out   string `` /* 130-byte string literal not displayed */
	Force bool   `name:"force" description:"Overwrite existing key files"`
}

UpdaterGenKeyOptions are the flags for `wails3 updater genkey`.

type UpdaterManifestOptions

type UpdaterManifestOptions struct {
	Version   string `name:"version" description:"Release version (semver). Required"`
	Channel   string `name:"channel" description:"Release channel, e.g. stable or beta"`
	Name      string `name:"name" description:"Human-readable release title"`
	Notes     string `name:"notes" description:"Release notes (Markdown)"`
	NotesFile string `name:"notes-file" description:"Read release notes from a Markdown file"`
	Key       string `name:"key" description:"Private key path. When set, every artifact is signed (ed25519ph over its sha512 digest)"`
	URLPrefix string `` /* 133-byte string literal not displayed */
	Output    string `name:"output" description:"Where to write the manifest, or - for stdout" default:"manifest.json"`
}

UpdaterManifestOptions are the flags for `wails3 updater manifest`.

type UpdaterSignOptions

type UpdaterSignOptions struct {
	Key string `name:"key" description:"Path to the private key generated by 'wails3 updater genkey'"`
}

UpdaterSignOptions are the flags for `wails3 updater sign`.

type UpdaterVerifyOptions

type UpdaterVerifyOptions struct {
	Manifest  string `name:"manifest" description:"Path to the manifest to verify" default:"manifest.json"`
	PublicKey string `name:"publickey" description:"Public key: path to the .pub file, or a base64 string"`
	Dir       string `name:"dir" description:"Directory containing the artifact files. Defaults to the manifest's directory"`
}

UpdaterVerifyOptions are the flags for `wails3 updater verify`.

type VersionOptions

type VersionOptions struct{}

type WailsConfig

type WailsConfig struct {
	Info struct {
		CompanyName       string `yaml:"companyName"`
		ProductName       string `yaml:"productName"`
		ProductIdentifier string `yaml:"productIdentifier"`
		Description       string `yaml:"description"`
		Copyright         string `yaml:"copyright"`
		Comments          string `yaml:"comments"`
		Version           string `yaml:"version"`
		CFBundleIconName  string `yaml:"cfBundleIconName,omitempty"`
	} `yaml:"info"`
	FileAssociations []FileAssociation `yaml:"fileAssociations,omitempty"`
	Protocols        []ProtocolConfig  `yaml:"protocols,omitempty"`
}

WailsConfig defines the structure for a Wails configuration.

type WatcherOptions

type WatcherOptions struct {
	Config string `description:"The config file including path" default:"."`
}

Directories

Path Synopsis
build_assets
ios command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL