diff --git a/go.mod b/go.mod index 44063e9..1ea0426 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.21 require ( github.com/google/go-github/v54 v54.0.0 github.com/rs/zerolog v1.30.0 - github.com/thegeeklab/wp-plugin-go v0.4.0 + github.com/thegeeklab/wp-plugin-go v0.5.0 github.com/urfave/cli/v2 v2.25.7 golang.org/x/oauth2 v0.11.0 ) diff --git a/go.sum b/go.sum index 7166b84..c987818 100644 --- a/go.sum +++ b/go.sum @@ -34,6 +34,8 @@ github.com/russross/blackfriday/v2 v2.1.0 h1:JIOH55/0cWyOuilr9/qlrm0BSXldqnqwMsf github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM= github.com/thegeeklab/wp-plugin-go v0.4.0 h1:eTkRH04gAAsYgCUekk8RBmPrIXk+UG+EJtRkoUFllLs= github.com/thegeeklab/wp-plugin-go v0.4.0/go.mod h1:y0k5zaKWjdGbgkaOHhEPFEL6p+yOLOjqHy0LWOrv0MM= +github.com/thegeeklab/wp-plugin-go v0.5.0 h1:PEORQl365YxqqYSu8rFoQ3hltTcFYSJCs8s9MDCej8A= +github.com/thegeeklab/wp-plugin-go v0.5.0/go.mod h1:y0k5zaKWjdGbgkaOHhEPFEL6p+yOLOjqHy0LWOrv0MM= github.com/urfave/cli/v2 v2.25.7 h1:VAzn5oq403l5pHjc4OhD54+XGO9cdKVL/7lDjF+iKUs= github.com/urfave/cli/v2 v2.25.7/go.mod h1:8qnjx1vcq5s2/wpsqoZFndg2CE5tNFyrTvS6SinrnYQ= github.com/xrash/smetrics v0.0.0-20201216005158-039620a65673 h1:bAn7/zixMGCfxrRTfdpNzjtPYqr8smhKouy9mxVdGPU= diff --git a/plugin/impl.go b/plugin/impl.go index b77586d..0f5db80 100644 --- a/plugin/impl.go +++ b/plugin/impl.go @@ -10,16 +10,13 @@ import ( "github.com/google/go-github/v54/github" "github.com/rs/zerolog/log" - "github.com/urfave/cli/v2" "golang.org/x/oauth2" ) var ErrPluginEventNotSupported = errors.New("event not supported") -// Execute provides the implementation of the plugin. -// //nolint:revive -func (p *Plugin) run(ctx context.Context, cCtx *cli.Context) error { +func (p *Plugin) run(ctx context.Context) error { if err := p.Validate(); err != nil { return fmt.Errorf("validation failed: %w", err) } diff --git a/plugin/plugin.go b/plugin/plugin.go index 4277acf..b7f1bfe 100644 --- a/plugin/plugin.go +++ b/plugin/plugin.go @@ -6,7 +6,7 @@ import ( wp "github.com/thegeeklab/wp-plugin-go/plugin" ) -// Plugin implements provide the plugin implementation. +// Plugin implements provide the plugin. type Plugin struct { *wp.Plugin Settings *Settings