get

package
v0.0.194 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInCluster

func IsInCluster() bool

IsInCluster tells if we are running incluster

Types

type Options

type Options struct {
	Dir               string
	Repository        string
	SourceURL         string
	GitServerURL      string
	GitKind           string
	GitToken          string
	UserName          string
	UserEmail         string
	Number            int
	ShowHeadURL       bool
	BatchMode         bool
	UseGitHubOAuth    bool
	CommandRunner     cmdrunner.CommandRunner
	ScmClient         *scm.Client
	AuthConfigService auth.ConfigService
	IOFileHandles     *util.IOFileHandles
	Result            *scm.PullRequest
	// contains filtered or unexported fields
}

KptOptions the options for the command

func NewCmdPullRequestGet

func NewCmdPullRequestGet() (*cobra.Command, *Options)

NewCmdPullRequestPush creates a command object for the command

func (*Options) Git

func (o *Options) Git() gits.Gitter

func (*Options) GitClient

func (o *Options) GitClient() gitclient.Interface

func (*Options) InitGitConfigAndUser

func (o *Options) InitGitConfigAndUser() error

func (*Options) Run

func (o *Options) Run() error

Run implements the command

Jump to

Keyboard shortcuts

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