appdev

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdDev = &cli.Command{
	Hidden: true,
	Name:   "debug",
	Usage:  "only for dev/debug",
	Action: func(c *cli.Context) error {
		wat, err := api.BuildFile(
			config.DefaultConfig(),
			"hello.wa", "func main() { println(123) }",
		)
		if err != nil {
			if len(wat) != 0 {
				fmt.Println(string(wat))
			}
			fmt.Println(err)
			os.Exit(1)
		}
		fmt.Println(string(wat))
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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