cli

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AutoDetectValue = "auto-detect"

AutoDetectValue indicates that the value should be detected automatically from a set of sources

View Source
var ErrAbort = errors.New("abort")

ErrAbort states that the regular execution should be aborted

Functions

func ReadStdinPipe added in v0.0.6

func ReadStdinPipe() ([]byte, error)

Types

type Configuration

type Configuration struct {
	GitLabCiFile         string
	GitlabBaseUrl        string
	GitlabToken          string
	Verbose              bool
	Debug                bool
	ShellcheckFlags      string
	OutputFormat         string
	FailSeverity         string
	ExcludedChecks       []string
	NoSyntaxValidateInCi bool
}

Configuration for the CLI

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration creates a new configuration

func (*Configuration) GitlabBaseUrlOverwrite

func (conf *Configuration) GitlabBaseUrlOverwrite() string

GitlabBaseUrlOverwrite returns an empty string in case the value should be automatically detected or otherwise the value of the cli parameter

func (*Configuration) Help

func (conf *Configuration) Help()

func (*Configuration) Parse

func (conf *Configuration) Parse() error

Parse the configuration from cli args

Jump to

Keyboard shortcuts

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