Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NativeService ¶
type NativeService interface { Service CMDExecutor() cmd.CmdExecutor }
type Options ¶
type Options struct { CmdExecutor cmd.CmdExecutor ShouldLog bool }
type Service ¶
type Service interface { SetCICDOrigin(origin string) (stdout, stderr string, err error) GitRepoPath() (path string, stdout, stderr string, err error) CurrentBranch() (branch glow.Branch, stdout, stderr string, err error) BranchList() (branchList []glow.Branch, stdout, stderr string, err error) Fetch() (stdout, stderr string, err error) AddAll() (stdout, stderr string, err error) Stash() (stdout, stderr string, err error) StashPop() (stdout, stderr string, err error) Commit(message string) (stdout, stderr string, err error) Push(setUpstream bool) (stdout, stderr string, err error) Create(b glow.Branch, skipChecks bool) (stdout, stderr string, err error) Checkout(b glow.Branch) (stdout, stderr string, err error) CleanupBranches(cleanupGone, cleanupUntracked bool) (stdout, stderr string, err error) CleanupTags(cleanupUntracked bool) (stdout, stderr string, err error) RemoteBranchExists(branchName string) (exists bool, stdout, stderr string, err error) }
Service describes all actions which can performed with git
func NewLoggingService ¶
NewLoggingService returns a new instance of a logging Service.
func NewNativeService ¶
Click to show internal directories.
Click to hide internal directories.