Skip to content

Commit

Permalink
merge: v2 rewrite of the project!
Browse files Browse the repository at this point in the history
Ship v2.0.0 #142
  • Loading branch information
joshmedeski committed Aug 23, 2024
2 parents 3bbb3d2 + 38a3d4b commit f999ba7
Show file tree
Hide file tree
Showing 109 changed files with 5,177 additions and 1,628 deletions.
12 changes: 12 additions & 0 deletions .mockery.yaml
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
9 changes: 9 additions & 0 deletions Makefile
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
30 changes: 30 additions & 0 deletions cloner/cloner.go
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
}
88 changes: 88 additions & 0 deletions cloner/mock_Cloner.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 0 additions & 40 deletions cmds/clone.go

This file was deleted.

42 changes: 0 additions & 42 deletions cmds/connect.go

This file was deleted.

89 changes: 0 additions & 89 deletions config/config.go

This file was deleted.

Loading

0 comments on commit f999ba7

Please sign in to comment.