Skip to content

Commit

Permalink
Add link to pflag.WithFlagSet doc
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandregv authored May 5, 2024
1 parent 79e9f28 commit 458f8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ There are providers for the following configuration sources.
| [`secretmanager`](provider/secretmanager) | [GCP Secret Manager](https://cloud.google.com/security/products/secret-manager) || [pubsub](notifier/pubsub) |
| [`gcs`](provider/gcs) | [GCP Cloud Storage](https://cloud.google.com/storage) || [pubsub](notifier/pubsub) |

[cobra](https://github.com/spf13/cobra) is supported through the [`pflag`](provider/pflag) loader, with the `WithFlagSet` option:
[cobra](https://github.com/spf13/cobra) is supported through the [`pflag`](provider/pflag) loader, with the [`pflag.WithFlagSet`](https://pkg.go.dev/github.com/nil-go/konf/provider/pflag#WithFlagSet) option:
```go
config.Load(kflag.New(&config, kflag.WithFlagSet(yourCobraCmd.Flags())))
```
Expand Down

0 comments on commit 458f8ae

Please sign in to comment.