appfmt

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CmdFmt = &cli.Command{
	Name:      "fmt",
	Usage:     "format Wa source code file",
	ArgsUsage: "[<file.wa>|<path>|<path>/...]",
	Action: func(c *cli.Context) error {
		for _, path := range c.Args().Slice() {
			if err := Fmt(path); err != nil {
				fmt.Println(err)
				os.Exit(1)
			}
		}
		return nil
	},
}

Functions

func Fmt

func Fmt(path string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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