internal

package
v0.5.1-rc0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetToken

func GetToken(repoUrl gitproviders.RepoURL, w io.Writer, lookupEnvFunc func(key string) (string, bool), authHandlerFunc GetAuthHandler, log logger.Logger) (string, error)

GetToken returns either the token stored in the <git provider>_TOKEN env var or a token retrieved via the CLI auth flow

func NewCLILogger

func NewCLILogger(writer io.Writer) logger.Logger

func NewGitProviderClient

func NewGitProviderClient(stdout *os.File, lookupEnvFunc func(key string) (string, bool), authHandlerFunc GetAuthHandler, log logger.Logger) gitproviders.Client

Types

type CLILogger

type CLILogger struct {
	// contains filtered or unexported fields
}

func (CLILogger) Actionf

func (l CLILogger) Actionf(format string, a ...interface{})

func (CLILogger) Failuref

func (l CLILogger) Failuref(format string, a ...interface{})

func (CLILogger) Generatef

func (l CLILogger) Generatef(format string, a ...interface{})

func (CLILogger) Infow

func (l CLILogger) Infow(msg string, kv ...interface{})

func (CLILogger) Printf

func (l CLILogger) Printf(format string, a ...interface{})

func (CLILogger) Println

func (l CLILogger) Println(format string, a ...interface{})

func (CLILogger) Successf

func (l CLILogger) Successf(format string, a ...interface{})

func (CLILogger) Waitingf

func (l CLILogger) Waitingf(format string, a ...interface{})

func (CLILogger) Warningf

func (l CLILogger) Warningf(format string, a ...interface{})

func (CLILogger) Write

func (l CLILogger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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