Documentation ¶
Index ¶
- type Plugin
- func (p *Plugin) CommandOutput(ctx context.Context, name string, args ...string) ([]byte, error)
- func (p *Plugin) CustomFormat(format ...string) (parser.Parser, error)
- func (p *Plugin) ExecCommand(ctx context.Context, name string, args ...string) (io.Reader, func(), error)
- func (p *Plugin) Execute(ctx context.Context) error
- func (p *Plugin) Flags() []cli.Flag
- func (p *Plugin) NamedFormat(name string) (parser.Parser, error)
- func (p *Plugin) Path() string
- func (p *Plugin) ToolName() string
- func (p *Plugin) Validate() error
- type Settings
- type Tool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Plugin ¶
type Plugin struct { *plugin.Plugin Settings Settings // contains filtered or unexported fields }
Plugin implements provide the plugin implementation.
func (*Plugin) CommandOutput ¶ added in v0.4.0
CommandOutput executes the given command and returns output.
func (*Plugin) CustomFormat ¶
CustomFormat returns a parser for the given format(s).
func (*Plugin) ExecCommand ¶
func (p *Plugin) ExecCommand(ctx context.Context, name string, args ...string) (io.Reader, func(), error)
ExecCommand executes the given command and returns output stream.
func (*Plugin) NamedFormat ¶
NamedFormat returns a parser for the given format name.
type Tool ¶
type Tool interface { // Name returns the name of the tool. Name() string // Flags returns the flags for the tool. Flags() []cli.Flag // Parser to be used by reviewdog. Parser() (parser.Parser, error) // Exec executes the tool. Exec(ctx context.Context) (io.Reader, func(), error) }
Tool to be used by the reviewdog.
Click to show internal directories.
Click to hide internal directories.