cmd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: Apache-2.0, BSD-3-Clause, GPL-3.0, + 1 more Imports: 7 Imported by: 0

Documentation

Overview

Package cmd provides command line tool to analyzer dockerfile.

Index

Constants

View Source
const (
	ExitCodeOK = iota
	ExitCodeParseFlagsError
	ExitCodeNoExistError
	ExitCodeFileError
	ExitCodeAstParseError
	ExitCodeLintCheckError
)

Exit codes are int values that represent an exit code for a particular error.

Variables

This section is empty.

Functions

This section is empty.

Types

type CLI

type CLI struct {
	OutStream, ErrStream io.Writer
}

CLI represents CLI interface.

func (*CLI) Run

func (cli *CLI) Run(args []string) int

Run it takes Dockerfile as an argument and applies it to analyzer to standard output.

Jump to

Keyboard shortcuts

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