Have got site creation working
This commit is contained in:
parent
4ecc12f035
commit
f8e7ea482b
15 changed files with 281 additions and 11 deletions
17
providers/git/provider.go
Normal file
17
providers/git/provider.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package git
|
||||
|
||||
import (
|
||||
"context"
|
||||
"os/exec"
|
||||
)
|
||||
|
||||
type Provider struct {
|
||||
}
|
||||
|
||||
func New() *Provider {
|
||||
return &Provider{}
|
||||
}
|
||||
|
||||
func (p *Provider) Clone(ctx context.Context, url string, targetDir string) error {
|
||||
return exec.CommandContext(ctx, "git", "clone", url, targetDir).Run()
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue