Add more documentation.

This commit is contained in:
Amy Boyd
2016-06-26 06:24:31 +01:00
parent 7ca9835cb9
commit 6660d539cc
3 changed files with 51 additions and 10 deletions

View File

@@ -13,19 +13,22 @@ func CreateCliApp() *cli.App {
app.Commands = []cli.Command{
{
Name: "ls",
Usage: "List files that will be matched by the arguments you give",
Action: LsCommand,
Name: "ls",
Usage: "List files that will be matched by the arguments you give",
Action: LsCommand,
ArgsUsage: "[PATH1] [PATH2...]",
},
{
Name: "rules",
Usage: "List rules that match a given file",
Action: RulesCommand,
Name: "rules",
Usage: "List rules that match a given file",
Action: RulesCommand,
ArgsUsage: "[PATH1] [PATH2...]",
},
{
Name: "check",
Usage: "Validate files",
Action: CheckCommand,
Name: "check",
Usage: "Validate files",
Action: CheckCommand,
ArgsUsage: "[PATH1] [PATH2...]",
},
}