Skip to content

Commit f999ba7

Browse files
authored
merge: v2 rewrite of the project!
Ship v2.0.0 #142
2 parents 3bbb3d2 + 38a3d4b commit f999ba7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+5177
-1628
lines changed

.mockery.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
with-expecter: True
2+
inpackage: True
3+
testonly: False
4+
dir: "{{.InterfaceDir}}"
5+
mockname: "Mock{{.InterfaceName}}"
6+
outpkg: "{{.PackageName}}"
7+
filename: "mock_{{.InterfaceName}}.go"
8+
all: True
9+
packages:
10+
github.com/joshmedeski/sesh:
11+
config:
12+
recursive: True

Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.PHONY: test build
2+
3+
BUILD_FLAGS="-X 'main.version=`git describe --tags --abbrev=0`'"
4+
5+
test:
6+
go test -cover -bench=. -benchmem -race ./... -coverprofile=coverage.out
7+
8+
build:
9+
@go build -ldflags ${BUILD_FLAGS} -o $(shell echo $$GOPATH)/bin/sesh-dev

cloner/cloner.go

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package cloner
2+
3+
import (
4+
"github.com/joshmedeski/sesh/connector"
5+
"github.com/joshmedeski/sesh/git"
6+
)
7+
8+
type Cloner interface {
9+
// Clones a git repository
10+
Clone(path string) (string, error)
11+
}
12+
13+
type RealCloner struct {
14+
connector connector.Connector
15+
git git.Git
16+
}
17+
18+
func NewCloner(connector connector.Connector, git git.Git) Cloner {
19+
return &RealCloner{
20+
connector: connector,
21+
git: git,
22+
}
23+
}
24+
25+
func (c *RealCloner) Clone(path string) (string, error) {
26+
// TODO: clone
27+
// TODO: get name of directory
28+
// TODO: connect to that directory
29+
return "", nil
30+
}

cloner/mock_Cloner.go

Lines changed: 88 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmds/clone.go

Lines changed: 0 additions & 40 deletions
This file was deleted.

cmds/connect.go

Lines changed: 0 additions & 42 deletions
This file was deleted.

config/config.go

Lines changed: 0 additions & 89 deletions
This file was deleted.

0 commit comments

Comments
 (0)