We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d54df commit 9702f70Copy full SHA for 9702f70
README.md
@@ -28,6 +28,7 @@ urfave/cli-docs/v3 is an extended documentation library for use with urfave/cli/
28
package main
29
30
import (
31
+ "context"
32
"fmt"
33
"os"
34
@@ -39,7 +40,7 @@ func main() {
39
40
app := &cli.Command{
41
Name: "greet",
42
Usage: "say a greeting",
- Action: func(c *cli.Context) error {
43
+ Action: func(ctx context.Context, c *cli.Command) error {
44
fmt.Println("Greetings")
45
return nil
46
},
@@ -79,4 +80,5 @@ greet
79
80
```
81
greet [GLOBAL OPTIONS] [command [COMMAND OPTIONS]] [ARGUMENTS...]
82
83
+
84
````
0 commit comments