cli

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2024 License: GPL-3.0 Imports: 5 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

This section is empty.

Types

type Configuration

type Configuration struct {
	GitLabCiFile  string
	GitlabBaseUrl string
	GitlabToken   string
	Verbose       bool
	Debug         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