cmd

package
v0.0.0-...-cccc563 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchCommits

func FetchCommits(
	repository gh.Repository,
	pullRequestId int,
) tea.Msg

func FetchPullRequests

func FetchPullRequests(
	repository gh.Repository,
) tea.Msg

func GetSplitSettings

func GetSplitSettings(repository gh.Repository, pullRequestId int, commits []Commit) tea.Msg

func ParseOptions

func ParseOptions() tea.Msg

func ToNwo

func ToNwo(r gh.Repository) string

func ToRepository

func ToRepository(nwo string) (gh.Repository, error)

Types

type Commit

type Commit struct {
	Sha     string
	Comment string
}

type CommitsFetched

type CommitsFetched struct {
	Commits []Commit
}

type CommitsSelected

type CommitsSelected struct {
	Repository    gh.Repository
	PullRequestId int
	Commits       []Commit
}

type ErrMsg

type ErrMsg struct {
	Error error
}

type OptionsParsed

type OptionsParsed struct {
	Repository  gh.Repository
	PullRequest int
}

type PullRequest

type PullRequest struct {
	Number int
	Title  string
	Author string
}

type PullRequestSelected

type PullRequestSelected struct {
	Repository    gh.Repository
	PullRequestId int
}

type PullRequestsFetched

type PullRequestsFetched struct {
	PullRequests []PullRequest
}

type SplitSettings

type SplitSettings struct {
	CloneDir       string
	NewBranchName  string
	BaseBranchName string
	NewPrTitle     string
	BodyFile       string
}

type UsageShown

type UsageShown struct {
	Usage string
}

Jump to

Keyboard shortcuts

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