Files
editorconfig-cli/editorconfig/cli.go
2016-06-24 21:28:24 +01:00

29 lines
506 B
Go

package editorconfig
import (
"github.com/codegangsta/cli"
)
func CreateCliApp() *cli.App {
app := cli.NewApp()
app.Name = "editorconfig-cli"
app.Usage = "Validate and fix files based on the rules in your .editorconfig file"
app.Commands = []cli.Command{
{
Name: "ls",
Usage: "List files that will be matched by the arguments you give",
Action: LsCommand,
},
{
Name: "rules",
Usage: "List rules that match a given file",
Action: RulesCommand,
},
}
return app
}