cmd

package
v0.0.0-...-f56c99c Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Globals

type Globals struct {
	Hostname    string        `help:"Gitlab server." default:"gitlab.com"`
	AccessToken string        `help:"A gitlab API access token."`
	Timeout     time.Duration `help:"Timeout for API requests." default:"10s"`
	Debug       bool          `help:"Log debug output."`

	output.Kong

	Version    king.VersionFlag `help:"Show version information."`
	ShowConfig king.ShowConfig  `help:"Show config file used"`

	AuthTokenFilename string // set in main function
}

Globals contains global arguments

func (*Globals) Client

func (g *Globals) Client() (*gitlab.Client, error)

func (*Globals) DelAuthToken

func (g *Globals) DelAuthToken() error

func (*Globals) SetAuthToken

func (g *Globals) SetAuthToken(token string) error

Directories

Path Synopsis
Package gitlabctl is a general purpose CLI for Gitlab
Package gitlabctl is a general purpose CLI for Gitlab

Jump to

Keyboard shortcuts

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