fix typo in v2 manual.md demo code

main
litongxue 5 years ago
parent 120c9eead1
commit f7ef1e38d6

@ -664,9 +664,7 @@ package main
import ( import (
"log" "log"
"os" "os"
"strings" "github.com/urfave/cli/v2"
"github.com/urfave/cli"
) )
func main() { func main() {
@ -1012,12 +1010,12 @@ import (
"fmt" "fmt"
"log" "log"
"os" "os"
"github.com/urfave/cli" "github.com/urfave/cli/v2"
) )
func main() { func main() {
app := cli.NewApp() app := cli.NewApp()
app.EnableBashCompletion = true app.EnableBashCompletion = true
app.Commands = []cli.Command{ app.Commands = []*cli.Command{
{ {
Name: "add", Name: "add",
Aliases: []string{"a"}, Aliases: []string{"a"},
@ -1040,7 +1038,7 @@ func main() {
Name: "template", Name: "template",
Aliases: []string{"t"}, Aliases: []string{"t"},
Usage: "options for task templates", Usage: "options for task templates",
Subcommands: []cli.Command{ Subcommands: []*cli.Command{
{ {
Name: "add", Name: "add",
Usage: "add a new template", Usage: "add a new template",

Loading…
Cancel
Save