Documentation ¶
Index ¶
- func CallGit(params ...string) error
- func CloneOrPullRepo(cfg Config, repoURL, repoPath string, resetOnFailedPull bool)
- func CloneRepo(cfg Config, repoURL, repoPath string)
- func CommitAndPush(repoPath string)
- func Exists(name string) bool
- func GetRepositoryHTTPSUrl(cfg Config, git Git) string
- func GetRepositoryNameFromURL(url string) string
- func GetRepositorySSHUrl(cfg Config, git Git) string
- func IsGitInstalled() bool
- func PullRepo(repoPath string) error
- func TimeTrack(start time.Time, name string)
- type Config
- type Git
- type Sourcecode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloneOrPullRepo ¶
CloneOrPullRepo from remote If the given repo exists locally it will try to pull (no force!) the repo (in order to update it) if it doesn't exist, it will clone the repo. If resetOnFailedPull is set to true it will call a 'git reset --hard' if the preceding pull command failed
func GetRepositoryHTTPSUrl ¶
GetRepositoryHTTPSUrl for GitHub repo
func GetRepositoryNameFromURL ¶
GetRepositoryNameFromURL only works on GitHub repos
func GetRepositorySSHUrl ¶
GetRepositorySSHUrl for GitHub repo
func IsGitInstalled ¶
func IsGitInstalled() bool
IsGitInstalled check whether git command line client is accessible on local machine
Types ¶
type Config ¶
type Config struct { Github struct { AccessToken string `json:"access_token,omitempty"` BaseURL string `json:"base_url"` CreateLinksInBacklogItems bool `json:"createLinksInBacklogItems,omitempty"` } `json:"github,omitempty"` Jira struct { BaseURL string `json:"base_url,omitempty"` BasicAuth struct { User string `json:"user"` Password string `json:"password"` } `json:"basicAuth,omitempty"` CreateLinksInBacklogItems bool `json:"createLinksInBacklogItems,omitempty"` } `json:"jira,omitempty"` Sourcecode []Sourcecode Mapping struct { Local string } TestReport []struct { Type string Local string } TraceabilityRepo struct { Git Git } Delivery struct { Program string Version string Backlogitems string } WorkDir string OutputDir string Log struct { Level string } }
Config struct representation of your JSON config file
func (*Config) ReadConfig ¶
ReadConfig from json file
func (*Config) ReadDelivery ¶
ReadDelivery from json file
Click to show internal directories.
Click to hide internal directories.