cmd

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BailOnError added in v0.0.3

func BailOnError(err error, msg string)

BailOnError exits if there is an error

func Copy added in v0.0.3

func Copy(cmd *cobra.Command, args []string)

Copy implements the copy command

func Execute

func Execute()

Execute runs the cli's main root command

func GetGitlabClient added in v0.0.3

func GetGitlabClient() gitlab.Client

GetGitlabClient connects to the Gitlab server or calls BailOnError()

func Paste added in v0.0.3

func Paste(cmd *cobra.Command, args []string)

Paste implements the paste command

Types

type RuneReader added in v0.0.3

type RuneReader interface {
	ReadRune() (rune, int, error)
}

RuneReader interface to allow STDIN dependency injection

Jump to

Keyboard shortcuts

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