cli

package
v0.20.9 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2025 License: MIT Imports: 37 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 {
	Type  string `json:"type" yaml:"type" jsonschema:"enum=cli" jsonschema_description:"the most common linter type, a cli tool"`
	Bin   string `json:"bin" yaml:"bin" jsonschema_description:"the binary or command to use"`
	Start Par    `` /* 134-byte string literal not displayed */
	End   Par    `json:"end,flow,omitempty" yaml:"end,flow,omitempty" jsonschema_description:"parameters that will be put behind the file path"`
	Img   string `json:"img,omitempty" yaml:"img,omitempty" jsonschema_description:"the container image to pull and use"`
	ChDir bool   `` /* 145-byte string literal not displayed */
	// 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