From f7ef1e38d615f7ae1aa8c7436258ec209facc4cb Mon Sep 17 00:00:00 2001 From: litongxue Date: Wed, 18 Mar 2020 14:32:57 +0800 Subject: [PATCH] fix typo in v2 manual.md demo code --- docs/v2/manual.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/v2/manual.md b/docs/v2/manual.md index ce61075f21..71f5699917 100644 --- a/docs/v2/manual.md +++ b/docs/v2/manual.md @@ -664,9 +664,7 @@ package main import ( "log" "os" - "strings" - - "github.com/urfave/cli" + "github.com/urfave/cli/v2" ) func main() { @@ -1012,12 +1010,12 @@ import ( "fmt" "log" "os" - "github.com/urfave/cli" + "github.com/urfave/cli/v2" ) func main() { app := cli.NewApp() app.EnableBashCompletion = true - app.Commands = []cli.Command{ + app.Commands = []*cli.Command{ { Name: "add", Aliases: []string{"a"}, @@ -1040,7 +1038,7 @@ func main() { Name: "template", Aliases: []string{"t"}, Usage: "options for task templates", - Subcommands: []cli.Command{ + Subcommands: []*cli.Command{ { Name: "add", Usage: "add a new template",