Documentation ¶
Index ¶
- Variables
- func CommentChar() string
- func Config(name string) (string, error)
- func GitCurrentBranch() (string, error)
- func GitDir() (string, error)
- func GitEditor() (string, error)
- type Client
- type Editor
- type GitClient
- type MockClient
- type RemoteInfo
- func (r *RemoteInfo) ApiUrl() string
- func (r *RemoteInfo) BaseUrl() string
- func (r *RemoteInfo) BranchUrl(branch string) string
- func (r *RemoteInfo) IssueDetailUrl(issueNo int) string
- func (r *RemoteInfo) IssueUrl() string
- func (r *RemoteInfo) MergeRequestDetailUrl(mergeRequestNo int) string
- func (r *RemoteInfo) MergeRequestUrl() string
- func (r *RemoteInfo) PipeLineDetailUrl(iid int) string
- func (r *RemoteInfo) PipeLineUrl() string
- func (r *RemoteInfo) RepositoryFullName() string
- func (r *RemoteInfo) RepositoryUrl() string
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalFlags []string
Functions ¶
func CommentChar ¶
func CommentChar() string
func GitCurrentBranch ¶
Types ¶
type Client ¶
type Client interface { RemoteInfos() ([]*RemoteInfo, error) CurrentBranch() (string, error) }
func NewGitClient ¶
func NewGitClient() Client
type Editor ¶
type Editor struct { Program string Topic string File string Message string CS string // contains filtered or unexported fields }
func (*Editor) DeleteFile ¶
func (*Editor) EditTitleAndDescription ¶
type GitClient ¶
type GitClient struct {
Client
}
func (*GitClient) CurrentBranch ¶
func (*GitClient) RemoteInfos ¶
func (g *GitClient) RemoteInfos() ([]*RemoteInfo, error)
type MockClient ¶
type MockClient struct { MockRemoteInfos func() ([]*RemoteInfo, error) MockCurrentBranch func() (string, error) }
func (*MockClient) CurrentBranch ¶
func (m *MockClient) CurrentBranch() (string, error)
func (*MockClient) RemoteInfos ¶
func (m *MockClient) RemoteInfos() ([]*RemoteInfo, error)
type RemoteInfo ¶
func GitRemotes ¶
func GitRemotes() ([]*RemoteInfo, error)
func NewRemoteInfo ¶
func NewRemoteInfo(url string) *RemoteInfo
func (*RemoteInfo) ApiUrl ¶
func (r *RemoteInfo) ApiUrl() string
func (*RemoteInfo) BaseUrl ¶
func (r *RemoteInfo) BaseUrl() string
func (*RemoteInfo) BranchUrl ¶
func (r *RemoteInfo) BranchUrl(branch string) string
func (*RemoteInfo) IssueDetailUrl ¶
func (r *RemoteInfo) IssueDetailUrl(issueNo int) string
func (*RemoteInfo) IssueUrl ¶
func (r *RemoteInfo) IssueUrl() string
func (*RemoteInfo) MergeRequestDetailUrl ¶
func (r *RemoteInfo) MergeRequestDetailUrl(mergeRequestNo int) string
func (*RemoteInfo) MergeRequestUrl ¶
func (r *RemoteInfo) MergeRequestUrl() string
func (*RemoteInfo) PipeLineDetailUrl ¶
func (r *RemoteInfo) PipeLineDetailUrl(iid int) string
func (*RemoteInfo) PipeLineUrl ¶
func (r *RemoteInfo) PipeLineUrl() string
func (*RemoteInfo) RepositoryFullName ¶
func (r *RemoteInfo) RepositoryFullName() string
func (*RemoteInfo) RepositoryUrl ¶
func (r *RemoteInfo) RepositoryUrl() string
Click to show internal directories.
Click to hide internal directories.