fix

package
v0.7.11 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

fix package contains the logics of the fix operations, fix operations are in charge of adapting our source code to comply with newer versions of the CLI.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	// contains filtered or unexported fields
}

func (Command) HelpText

func (c Command) HelpText() string

func (Command) Name

func (c Command) Name() string

func (Command) ParentName

func (c Command) ParentName() string

func (*Command) Receive

func (c *Command) Receive(plugins []plugins.Plugin)

func (*Command) Run

func (c *Command) Run(ctx context.Context, root string, args []string) error

type Fixer

type Fixer interface {
	plugins.Plugin
	Fix(context.Context, string, []string) error
}

Fixer interface is created for those commands that fill fix certain part of our code to match versions or compile correctly. Fixers are a good way to transition from old versions of the tools into newer ones

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL