-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
109 changed files
with
5,177 additions
and
1,628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
with-expecter: True | ||
inpackage: True | ||
testonly: False | ||
dir: "{{.InterfaceDir}}" | ||
mockname: "Mock{{.InterfaceName}}" | ||
outpkg: "{{.PackageName}}" | ||
filename: "mock_{{.InterfaceName}}.go" | ||
all: True | ||
packages: | ||
github.com/joshmedeski/sesh: | ||
config: | ||
recursive: True |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.PHONY: test build | ||
|
||
BUILD_FLAGS="-X 'main.version=`git describe --tags --abbrev=0`'" | ||
|
||
test: | ||
go test -cover -bench=. -benchmem -race ./... -coverprofile=coverage.out | ||
|
||
build: | ||
@go build -ldflags ${BUILD_FLAGS} -o $(shell echo $$GOPATH)/bin/sesh-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package cloner | ||
|
||
import ( | ||
"github.com/joshmedeski/sesh/connector" | ||
"github.com/joshmedeski/sesh/git" | ||
) | ||
|
||
type Cloner interface { | ||
// Clones a git repository | ||
Clone(path string) (string, error) | ||
} | ||
|
||
type RealCloner struct { | ||
connector connector.Connector | ||
git git.Git | ||
} | ||
|
||
func NewCloner(connector connector.Connector, git git.Git) Cloner { | ||
return &RealCloner{ | ||
connector: connector, | ||
git: git, | ||
} | ||
} | ||
|
||
func (c *RealCloner) Clone(path string) (string, error) { | ||
// TODO: clone | ||
// TODO: get name of directory | ||
// TODO: connect to that directory | ||
return "", nil | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.