Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VCS ¶
type VCS interface { // Identify returns true if it is the expected VCS type (based on information found in dir) Identify(dir string) bool // Name returns the name of the VCS Name() string // Branch returns the current branch Branch() string // Commit returns the current commit Commit() string }
VCS represent the VersionControlSystem used
func NewMockVcs ¶
func NewMockVcs() VCS
NewMockVcs returns a mockVcs with default commit and branch name
func NewMockVcsWithBranch ¶
NewMockVcsWithBranch returns a mockVcs with a specific branch name
Click to show internal directories.
Click to hide internal directories.