options

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDryRunArg

func AddDryRunArg(cmd *cobra.Command, po *DryRunOptions)

func AddFileSystemArgs

func AddFileSystemArgs(cmd *cobra.Command, o *FileSystemOptions)

func AddPullRequestArgs

func AddPullRequestArgs(cmd *cobra.Command, o *PullRequestOptions)

func AddVerboseArg

func AddVerboseArg(cmd *cobra.Command, vo *VerboseOptions)

Types

type DryRunOptions

type DryRunOptions struct {
	DryRun bool
}

DryRunOptions

type FileSystemOptions

type FileSystemOptions struct {
	Workspace string
}

FileSystemOptions

type PullRequestOptions

type PullRequestOptions struct {

	// TODO: GitHub terms are base repo foo/bar @ base branch <- head repo:fork/bar compare branch
	// Git repos
	BaseRepo   string
	BaseBranch string

	// Pull Request
	Title string
	Body  string

	Signoff bool
	// contains filtered or unexported fields
}

PullRequestOptions

func (*PullRequestOptions) CommitBranch

func (o *PullRequestOptions) CommitBranch() *string

CommitBranch returns a pointer to a string to use as the commit branch name.

func (*PullRequestOptions) Owner

func (o *PullRequestOptions) Owner() string

Owner returns the parsed owner from --repo.

func (*PullRequestOptions) Password

func (o *PullRequestOptions) Password() string

func (*PullRequestOptions) Repo

func (o *PullRequestOptions) Repo() string

Repo returns the parsed repo from --repo.

func (*PullRequestOptions) Signature

func (o *PullRequestOptions) Signature() (*object.Signature, error)

Signature returns the structured git Signature if passed in from the username and email, or from local git config if set.

func (*PullRequestOptions) Token

func (o *PullRequestOptions) Token() (*string, error)

Token returns the GitHub passed in command line, or from the local git config.

func (*PullRequestOptions) Username

func (o *PullRequestOptions) Username() string

type VerboseOptions

type VerboseOptions struct {
	Verbose bool
}

VerboseOptions

Jump to

Keyboard shortcuts

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