Documentation ¶
Index ¶
- func AbsDir() (string, error)
- func CommentChar() string
- func Config(name string) (string, error)
- func CurrentBranch() (string, error)
- func GitDir() (string, error)
- func GitEditor() (string, error)
- func IsGitDir(dir string) bool
- func IsGitDirReverseTop() (bool, error)
- func Root() (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) BranchFileWithLine(branch string, path string, line string) string
- func (r *RemoteInfo) BranchPath(branch string, path string) string
- func (r *RemoteInfo) BranchUrl(branch string) string
- func (r *RemoteInfo) RepositoryFullName() string
- func (r *RemoteInfo) RepositoryUrl() string
- func (r *RemoteInfo) Subpage(subpage string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommentChar ¶
func CommentChar() string
func CurrentBranch ¶ added in v0.4.0
func IsGitDirReverseTop ¶ added in v0.6.0
Types ¶
type Client ¶
type Client interface { RemoteInfos() ([]*RemoteInfo, error) CurrentRemoteBranch() (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) CurrentRemoteBranch ¶ added in v0.4.0
func (*GitClient) RemoteInfos ¶
func (g *GitClient) RemoteInfos() ([]*RemoteInfo, error)
type MockClient ¶
type MockClient struct { MockRemoteInfos func() ([]*RemoteInfo, error) MockCurrentRemoteBranch func() (string, error) }
func (*MockClient) CurrentRemoteBranch ¶ added in v0.4.0
func (m *MockClient) CurrentRemoteBranch() (string, error)
func (*MockClient) RemoteInfos ¶
func (m *MockClient) RemoteInfos() ([]*RemoteInfo, error)
type RemoteInfo ¶
type RemoteInfo struct { Remote string Domain string Group string SubGroup string Repository string }
func NewRemoteInfo ¶
func NewRemoteInfo(remote, url string) *RemoteInfo
func (*RemoteInfo) ApiUrl ¶
func (r *RemoteInfo) ApiUrl() string
func (*RemoteInfo) BaseUrl ¶
func (r *RemoteInfo) BaseUrl() string
func (*RemoteInfo) BranchFileWithLine ¶ added in v0.4.0
func (r *RemoteInfo) BranchFileWithLine(branch string, path string, line string) string
func (*RemoteInfo) BranchPath ¶ added in v0.4.0
func (r *RemoteInfo) BranchPath(branch string, path string) string
func (*RemoteInfo) BranchUrl ¶
func (r *RemoteInfo) BranchUrl(branch string) string
func (*RemoteInfo) RepositoryFullName ¶
func (r *RemoteInfo) RepositoryFullName() string
func (*RemoteInfo) RepositoryUrl ¶
func (r *RemoteInfo) RepositoryUrl() string
func (*RemoteInfo) Subpage ¶ added in v0.4.0
func (r *RemoteInfo) Subpage(subpage string) string
Click to show internal directories.
Click to hide internal directories.