Documentation ¶
Index ¶
- func AddDryRunArg(cmd *cobra.Command, po *DryRunOptions)
- func AddFileSystemArgs(cmd *cobra.Command, o *FileSystemOptions)
- func AddPullRequestArgs(cmd *cobra.Command, o *PullRequestOptions)
- func AddVerboseArg(cmd *cobra.Command, vo *VerboseOptions)
- type DryRunOptions
- type FileSystemOptions
- type PullRequestOptions
- func (o *PullRequestOptions) CommitBranch() *string
- func (o *PullRequestOptions) Owner() string
- func (o *PullRequestOptions) Password() string
- func (o *PullRequestOptions) Repo() string
- func (o *PullRequestOptions) Signature() (*object.Signature, error)
- func (o *PullRequestOptions) Token() (*string, error)
- func (o *PullRequestOptions) Username() string
- type VerboseOptions
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 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
Click to show internal directories.
Click to hide internal directories.