Skip to content

Commit

Permalink
Merge pull request #1087 from l1905/master
Browse files Browse the repository at this point in the history
fix typo in v2 manual.md demo code
  • Loading branch information
coilysiren committed Mar 18, 2020
2 parents 120c9ee + f7ef1e3 commit 1c4bb12
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/v2/manual.md
Expand Up @@ -664,9 +664,7 @@ package main
import (
"log"
"os"
"strings"

"github.com/urfave/cli"
"github.com/urfave/cli/v2"
)

func main() {
Expand Down Expand Up @@ -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"},
Expand All @@ -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",
Expand Down

0 comments on commit 1c4bb12

Please sign in to comment.