cli

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LintCommand

type LintCommand struct {
	Format      string   `kong:"help='Report format [${enum}].',default='summary',enum='json, summary'"`
	NoColor     bool     `kong:"help='No color output'"`
	Paths       []string `kong:"arg,required,help='Path to Dockerfile.',type:'path'"`
	ReturnValue string   `kong:"help='Set return value to one of [${enum}] NOT_IMPLEMENTED.',default='app',enum='app, bool, num'"` // nolint:lll
	Verbosity   string   `kong:"help='Verbosity level [${enum}].',default='normal',enum='normal, short'"`
}

func (*LintCommand) Run

func (lintCommand *LintCommand) Run() error

type LspCommand

type LspCommand struct {
	Port int `help:"Port number" default:"18888"`
}

func (*LspCommand) Run

func (lspCommand *LspCommand) Run() error

Run starts the Language Server.

type VersionCommand

type VersionCommand struct{}

func (*VersionCommand) Run

func (versionCommand *VersionCommand) Run(k *kong.Context) error

type WhaleLintCLI

type WhaleLintCLI struct {
	Lint    LintCommand    `kong:"cmd,help='run linter.'"`
	Lsp     LspCommand     `kong:"cmd,help='run language server'"`
	Version VersionCommand `kong:"cmd,help='show version.'"`

	Config string `kong:"help='config file path NOTIMPLEMENTED'"` // nolint:gofmt,gofumpt,goimports
}

func (WhaleLintCLI) ApplyDefaultCommand

func (t WhaleLintCLI) ApplyDefaultCommand(err error, args *[]string)

func (*WhaleLintCLI) Options

func (*WhaleLintCLI) Options() []kong.Option

Jump to

Keyboard shortcuts

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