cli

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2025 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintCli added in v0.20.0

type LintCli struct {
	Bin   string `yaml:"bin"`
	Start Par    `yaml:"start,flow"`
	End   Par    `yaml:"end,flow"`
	Img   string `yaml:"img,omitempty"`
	ChDir bool   `yaml:"chdir,omitempty"`
	// contains filtered or unexported fields
}

LintCli defines a predefined command to run against a file

func (*LintCli) Cleanup added in v0.20.0

func (e *LintCli) Cleanup(group *sync.WaitGroup)

Cleanup removes any additional resources created in the process

func (*LintCli) MaxConcurrency added in v0.20.0

func (e *LintCli) MaxConcurrency() int

MaxConcurrency returns the max concurrency name

func (*LintCli) Name added in v0.20.0

func (e *LintCli) Name() string

Name returns the command name

func (*LintCli) Run added in v0.20.0

func (e *LintCli) Run(filePath string, rep chan linter.Report)

Run does the work required to lint the given filepath

func (*LintCli) WillRun added in v0.20.0

func (e *LintCli) 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