Skip to content

Commit 9702f70

Browse files
committed
fix example and use actual output
1 parent 71d54df commit 9702f70

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ urfave/cli-docs/v3 is an extended documentation library for use with urfave/cli/
2828
package main
2929

3030
import (
31+
"context"
3132
"fmt"
3233
"os"
3334

@@ -39,7 +40,7 @@ func main() {
3940
app := &cli.Command{
4041
Name: "greet",
4142
Usage: "say a greeting",
42-
Action: func(c *cli.Context) error {
43+
Action: func(ctx context.Context, c *cli.Command) error {
4344
fmt.Println("Greetings")
4445
return nil
4546
},
@@ -79,4 +80,5 @@ greet
7980
```
8081
greet [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]
8182
```
83+
8284
````

0 commit comments

Comments
 (0)