split v1 docs into individual pages

This commit is contained in:
Hayden
2022-08-14 14:49:05 -08:00
committed by Dan Buch
parent 76bb9f100b
commit 1ae70fcadd
16 changed files with 1448 additions and 1458 deletions

View File

@@ -0,0 +1,50 @@
For additional organization in apps that have many subcommands, you can
associate a category for each command to group them together in the help
output.
E.g.
```go
package main
import (
"log"
"os"
"github.com/urfave/cli"
)
func main() {
app := cli.NewApp()
app.Commands = []cli.Command{
{
Name: "noop",
},
{
Name: "add",
Category: "Template actions",
},
{
Name: "remove",
Category: "Template actions",
},
}
err := app.Run(os.Args)
if err != nil {
log.Fatal(err)
}
}
```
Will include:
```
COMMANDS:
noop
Template actions:
add
remove
```