Merge pull request #1087 from l1905/master

fix typo in v2 manual.md demo code
main
lynn [they] 4 years ago committed by GitHub
commit 1c4bb12e86
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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",

Loading…
Cancel
Save