19 lines
306 B
Go
19 lines
306 B
Go
|
package githelper
|
||
|
|
||
|
type Mock struct{}
|
||
|
|
||
|
func NewGitMock() Githelper {
|
||
|
return &Mock{}
|
||
|
}
|
||
|
|
||
|
func (m *Mock) CloneRepo(workdir, gitURL string, dry bool) error {
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (g *Mock) AddAllAndCommit(workdir, message string) error {
|
||
|
return nil
|
||
|
}
|
||
|
func (g *Mock) Push(workdir string) error {
|
||
|
return nil
|
||
|
}
|