Merge pull request #943 from saschagrunert/docs-fix

Fix gofmrun for v2 manual
This commit is contained in:
lynn [they]
2019-11-24 18:27:00 -08:00
committed by GitHub

View File

@@ -1404,17 +1404,6 @@ func main() {
cli.ShowSubcommandHelp(c) cli.ShowSubcommandHelp(c)
cli.ShowVersion(c) cli.ShowVersion(c)
categories := c.App.Categories
categories.AddCommand("sounds", &cli.Command{
Name: "bloop",
})
for _, category := range c.App.Categories.Categories() {
fmt.Fprintf(c.App.Writer, "%s\n", category.Name)
fmt.Fprintf(c.App.Writer, "%#v\n", category.VisibleCommands())
fmt.Fprintf(c.App.Writer, "%#v\n", category.VisibleCommands())
}
fmt.Printf("%#v\n", c.App.Command("doo")) fmt.Printf("%#v\n", c.App.Command("doo"))
if c.Bool("infinite") { if c.Bool("infinite") {
c.App.Run([]string{"app", "doo", "wop"}) c.App.Run([]string{"app", "doo", "wop"})