Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Command = &cli.Command{ Name: "generate", Aliases: []string{"go"}, Usage: "generate Go bindings from from WIT (WebAssembly Interface Types)", Flags: []cli.Flag{ &cli.StringFlag{ Name: "world", Aliases: []string{"w"}, Value: "", OnlyOnce: true, Config: cli.StringConfig{TrimSpace: true}, Usage: "WIT world to generate, otherwise generate all worlds", }, &cli.StringFlag{ Name: "out", Aliases: []string{"o"}, Value: ".", TakesFile: true, OnlyOnce: true, Config: cli.StringConfig{TrimSpace: true}, Usage: "output directory", }, &cli.StringFlag{ Name: "package-root", Aliases: []string{"p"}, Value: "", OnlyOnce: true, Config: cli.StringConfig{TrimSpace: true}, Usage: "Go package root, e.g. github.com/org/repo/internal", }, &cli.BoolFlag{ Name: "versioned", Usage: "emit versioned Go package(s) for each WIT version", }, &cli.BoolFlag{ Name: "dry-run", Usage: "do not write files; print to stdout", }, }, Action: action, }
Command is the CLI command for wit.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.