cli

package
v0.19.80 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerCmd

type DockerCmd struct {
	Image string
	// contains filtered or unexported fields
}

DockerCmd an image to launch

type Lint

type Lint struct {
	Bin      string
	FrontPar Par
	EndPar   Par
	Docker   DockerCmd
	// contains filtered or unexported fields
}

Lint defines a predefined command to run against a file

func (*Lint) DidRun

func (e *Lint) DidRun()

DidRun should be called after all other Runs to clean up

func (*Lint) MaxConcurrency

func (e *Lint) MaxConcurrency() int

MaxConcurrency returns the max concurrency name

func (*Lint) Name

func (e *Lint) Name() string

Name returns the command name

func (*Lint) Run

func (e *Lint) Run(filepath string, rep chan linter.Report)

Run does the work required to lint the given filepath

func (*Lint) WillRun

func (e *Lint) WillRun() error

WillRun does preflight checks for the 'Run'

type Par

type Par []string

Par represents cli parameters

Jump to

Keyboard shortcuts

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