config

package
v0.0.0-...-6c00632 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindGitlabToolConfig

func FindGitlabToolConfig(configFileName string) (string, error)

func NewYamlSourceFromFile

func NewYamlSourceFromFile(file string) (altsrc.InputSourceContext, error)

NewYamlSourceFromFile creates a new Yaml InputSourceContext from a filepath.

func NewYamlSourceFromFlagFunc

func NewYamlSourceFromFlagFunc(flagFileName string) func(context *cli.Context) (altsrc.InputSourceContext, error)

NewYamlSourceFromFlagFunc creates a new Yaml InputSourceContext from a provided flag name and source context.

Types

type App

type App struct {
	BasePath *GitLabPath
	Config   *Config
	Client   *gitlab.Client
}

type Config

type Config struct {
	GitLabURL       string
	GitLabToken     string
	GitLabGroup     string
	ExcludeProjects []string
}

Config represents common gitlab-cli settings

type GitLabPath

type GitLabPath struct {
	Server  string
	Group   string
	Project string
}

Jump to

Keyboard shortcuts

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