Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CmdDev = &cli.Command{ Hidden: true, Name: "debug", Usage: "only for dev/debug", Flags: []cli.Flag{ &cli.BoolFlag{ Name: "hello", }, &cli.BoolFlag{ Name: "count-code-lines", }, }, Action: func(c *cli.Context) error { if c.Bool("count-code-lines") { RunCountCodeLines() os.Exit(0) } if c.Bool("hello") { _, 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)) os.Exit(0) } fmt.Println("...dev...") return nil }, }
Functions ¶
func RunCountCodeLines ¶ added in v0.9.0
func RunCountCodeLines()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.